@heliofi/common 0.2.259 → 0.2.261
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/audit/explorer/constants/ExplorerAuditAction.d.ts +1 -0
- package/dist/src/domain/model/audit/explorer/constants/ExplorerAuditAction.js +1 -0
- package/dist/src/domain/model/audit/explorer/constants/ExplorerAuditAction.js.map +1 -1
- package/dist/src/domain/model/audit/explorer/constants/ExplorerAuditActionType.js +1 -0
- package/dist/src/domain/model/audit/explorer/constants/ExplorerAuditActionType.js.map +1 -1
- package/dist/src/domain/model/company/dtos/index.d.ts +1 -0
- package/dist/src/domain/model/company/dtos/index.js +1 -0
- package/dist/src/domain/model/company/dtos/index.js.map +1 -1
- package/dist/src/domain/model/company/dtos/updateRestrictedDepositEngines.dto.d.ts +4 -0
- package/dist/src/domain/model/company/dtos/updateRestrictedDepositEngines.dto.js +24 -0
- package/dist/src/domain/model/company/dtos/updateRestrictedDepositEngines.dto.js.map +1 -0
- package/dist/src/domain/model/company/entities/BaseCompany.entity.d.ts +2 -0
- package/dist/src/domain/model/company/entities/BaseCompany.entity.js.map +1 -1
- package/dist/src/domain/model/currency/entities/CurrencyFeature.d.ts +2 -0
- package/dist/src/domain/model/currency/entities/CurrencyFeature.js +2 -0
- package/dist/src/domain/model/currency/entities/CurrencyFeature.js.map +1 -1
- package/dist/src/domain/model/decent-swap/entities/DecentBridgeProvider.d.ts +3 -1
- package/dist/src/domain/model/decent-swap/entities/DecentBridgeProvider.js +2 -0
- package/dist/src/domain/model/decent-swap/entities/DecentBridgeProvider.js.map +1 -1
- package/dist/src/domain/model/decent-swap/entities/DecentTransactionStatus.d.ts +1 -1
- package/dist/src/domain/model/helio-wallet-transaction/dtos/helioWalletRefund.dto.d.ts +6 -0
- package/dist/src/domain/model/{withdraw/dtos/submitWithdrawalSignedTx.dto.js → helio-wallet-transaction/dtos/helioWalletRefund.dto.js} +15 -11
- package/dist/src/domain/model/helio-wallet-transaction/dtos/helioWalletRefund.dto.js.map +1 -0
- package/dist/src/domain/model/helio-wallet-transaction/dtos/index.d.ts +1 -0
- package/dist/src/domain/model/helio-wallet-transaction/dtos/index.js +1 -0
- package/dist/src/domain/model/helio-wallet-transaction/dtos/index.js.map +1 -1
- package/dist/src/domain/model/index.d.ts +1 -0
- package/dist/src/domain/model/index.js +1 -0
- package/dist/src/domain/model/index.js.map +1 -1
- package/dist/src/domain/model/intercom-identity/entities/IntercomIdentityHash.entity.d.ts +3 -0
- package/dist/src/domain/model/intercom-identity/entities/IntercomIdentityHash.entity.js +7 -0
- package/dist/src/domain/model/intercom-identity/entities/IntercomIdentityHash.entity.js.map +1 -0
- package/dist/src/domain/model/intercom-identity/entities/index.d.ts +1 -0
- package/dist/src/domain/model/intercom-identity/entities/index.js +18 -0
- package/dist/src/domain/model/intercom-identity/entities/index.js.map +1 -0
- package/dist/src/domain/model/intercom-identity/index.d.ts +1 -0
- package/dist/src/domain/model/intercom-identity/index.js +18 -0
- package/dist/src/domain/model/intercom-identity/index.js.map +1 -0
- package/dist/src/domain/model/on-ramps/dtos/getMoonPayPlatformPaymentMethods.dto.d.ts +5 -0
- package/dist/src/domain/model/on-ramps/dtos/getMoonPayPlatformPaymentMethods.dto.js +35 -0
- package/dist/src/domain/model/on-ramps/dtos/getMoonPayPlatformPaymentMethods.dto.js.map +1 -0
- package/dist/src/domain/model/on-ramps/dtos/getMoonPayPlatformPaymentMethods.dto.spec.d.ts +1 -0
- package/dist/src/domain/model/on-ramps/dtos/getMoonPayPlatformPaymentMethods.dto.spec.js +57 -0
- package/dist/src/domain/model/on-ramps/dtos/getMoonPayPlatformPaymentMethods.dto.spec.js.map +1 -0
- package/dist/src/domain/model/on-ramps/dtos/index.d.ts +1 -0
- package/dist/src/domain/model/on-ramps/dtos/index.js +1 -0
- package/dist/src/domain/model/on-ramps/dtos/index.js.map +1 -1
- package/dist/src/domain/model/on-ramps/entities/MoonPayPlatformPaymentMethodConfig.entity.d.ts +16 -0
- package/dist/src/domain/model/on-ramps/entities/MoonPayPlatformPaymentMethodConfig.entity.js +7 -0
- package/dist/src/domain/model/on-ramps/entities/MoonPayPlatformPaymentMethodConfig.entity.js.map +1 -0
- package/dist/src/domain/model/on-ramps/entities/MoonPayPlatformPaymentMethods.entity.d.ts +6 -0
- package/dist/src/domain/model/on-ramps/entities/MoonPayPlatformPaymentMethods.entity.js +7 -0
- package/dist/src/domain/model/on-ramps/entities/MoonPayPlatformPaymentMethods.entity.js.map +1 -0
- package/dist/src/domain/model/on-ramps/entities/MoonPayStoredPaymentMethod.entity.d.ts +12 -0
- package/dist/src/domain/model/on-ramps/entities/MoonPayStoredPaymentMethod.entity.js +7 -0
- package/dist/src/domain/model/on-ramps/entities/MoonPayStoredPaymentMethod.entity.js.map +1 -0
- package/dist/src/domain/model/on-ramps/entities/index.d.ts +3 -0
- package/dist/src/domain/model/on-ramps/entities/index.js +3 -0
- package/dist/src/domain/model/on-ramps/entities/index.js.map +1 -1
- package/dist/src/domain/model/transaction-meta/constants/TransactionStatus.d.ts +1 -0
- package/dist/src/domain/model/transaction-meta/constants/TransactionStatus.js +3 -0
- package/dist/src/domain/model/transaction-meta/constants/TransactionStatus.js.map +1 -1
- package/dist/src/domain/model/webhook/withdrawal/withdrawal-hook/dtos/createWithdrawalHook.dto.d.ts +7 -0
- package/dist/src/domain/model/webhook/withdrawal/withdrawal-hook/dtos/createWithdrawalHook.dto.js +36 -0
- package/dist/src/domain/model/webhook/withdrawal/withdrawal-hook/dtos/createWithdrawalHook.dto.js.map +1 -0
- package/dist/src/domain/model/webhook/withdrawal/withdrawal-hook/dtos/createWithdrawalHookByApiKey.dto.d.ts +6 -0
- package/dist/src/domain/model/webhook/withdrawal/withdrawal-hook/dtos/createWithdrawalHookByApiKey.dto.js +31 -0
- package/dist/src/domain/model/webhook/withdrawal/withdrawal-hook/dtos/createWithdrawalHookByApiKey.dto.js.map +1 -0
- package/dist/src/domain/model/webhook/withdrawal/withdrawal-hook/dtos/index.d.ts +4 -0
- package/dist/src/domain/model/webhook/withdrawal/withdrawal-hook/dtos/index.js +21 -0
- package/dist/src/domain/model/webhook/withdrawal/withdrawal-hook/dtos/index.js.map +1 -0
- package/dist/src/domain/model/webhook/withdrawal/withdrawal-hook/dtos/sendWithdrawalHookTestEvent.dto.d.ts +4 -0
- package/dist/src/domain/model/webhook/withdrawal/withdrawal-hook/dtos/sendWithdrawalHookTestEvent.dto.js +23 -0
- package/dist/src/domain/model/webhook/withdrawal/withdrawal-hook/dtos/sendWithdrawalHookTestEvent.dto.js.map +1 -0
- package/dist/src/domain/model/webhook/withdrawal/withdrawal-hook/dtos/updateWithdrawalHook.dto.d.ts +7 -0
- package/dist/src/domain/model/webhook/withdrawal/withdrawal-hook/dtos/updateWithdrawalHook.dto.js +41 -0
- package/dist/src/domain/model/webhook/withdrawal/withdrawal-hook/dtos/updateWithdrawalHook.dto.js.map +1 -0
- package/dist/src/domain/model/webhook/withdrawal/withdrawal-hook/entities/WithdrawalHook.entity.d.ts +12 -0
- package/dist/src/domain/model/webhook/withdrawal/withdrawal-hook/entities/WithdrawalHook.entity.js +8 -0
- package/dist/src/domain/model/webhook/withdrawal/withdrawal-hook/entities/WithdrawalHook.entity.js.map +1 -0
- package/dist/src/domain/model/webhook/withdrawal/withdrawal-hook/entities/index.d.ts +1 -1
- package/dist/src/domain/model/webhook/withdrawal/withdrawal-hook/entities/index.js +15 -0
- package/dist/src/domain/model/webhook/withdrawal/withdrawal-hook/entities/index.js.map +1 -1
- package/dist/src/domain/model/webhook/withdrawal/withdrawal-hook/index.d.ts +2 -0
- package/dist/src/domain/model/webhook/withdrawal/withdrawal-hook/index.js +2 -0
- package/dist/src/domain/model/webhook/withdrawal/withdrawal-hook/index.js.map +1 -1
- package/dist/src/domain/model/webhook/withdrawal/withdrawal-hook/query/getAllQuery.dto.d.ts +4 -0
- package/dist/src/domain/model/webhook/withdrawal/withdrawal-hook/query/getAllQuery.dto.js +23 -0
- package/dist/src/domain/model/webhook/withdrawal/withdrawal-hook/query/getAllQuery.dto.js.map +1 -0
- package/dist/src/domain/model/webhook/withdrawal/withdrawal-hook/query/index.d.ts +1 -0
- package/dist/src/domain/model/webhook/withdrawal/withdrawal-hook/query/index.js +18 -0
- package/dist/src/domain/model/webhook/withdrawal/withdrawal-hook/query/index.js.map +1 -0
- package/dist/src/domain/model/webhook/withdrawal/withdrawal-hook-event/dtos/createWithdrawalHookEvent.dto.d.ts +9 -0
- package/dist/src/domain/model/webhook/withdrawal/withdrawal-hook-event/dtos/createWithdrawalHookEvent.dto.js +48 -0
- package/dist/src/domain/model/webhook/withdrawal/withdrawal-hook-event/dtos/createWithdrawalHookEvent.dto.js.map +1 -0
- package/dist/src/domain/model/webhook/withdrawal/withdrawal-hook-event/dtos/index.d.ts +2 -0
- package/dist/src/domain/model/webhook/withdrawal/withdrawal-hook-event/dtos/index.js +19 -0
- package/dist/src/domain/model/webhook/withdrawal/withdrawal-hook-event/dtos/index.js.map +1 -0
- package/dist/src/domain/model/webhook/withdrawal/withdrawal-hook-event/dtos/updateWithdrawalHookEvent.dto.d.ts +6 -0
- package/dist/src/domain/model/webhook/withdrawal/withdrawal-hook-event/dtos/updateWithdrawalHookEvent.dto.js +33 -0
- package/dist/src/domain/model/webhook/withdrawal/withdrawal-hook-event/dtos/updateWithdrawalHookEvent.dto.js.map +1 -0
- package/dist/src/domain/model/webhook/withdrawal/withdrawal-hook-event/entities/BaseWithdrawalHookEvents.entity.d.ts +12 -0
- package/dist/src/domain/model/webhook/withdrawal/withdrawal-hook-event/entities/BaseWithdrawalHookEvents.entity.js +8 -0
- package/dist/src/domain/model/webhook/withdrawal/withdrawal-hook-event/entities/BaseWithdrawalHookEvents.entity.js.map +1 -0
- package/dist/src/domain/model/webhook/withdrawal/withdrawal-hook-event/entities/WithdrawalHookEvents.entity.d.ts +5 -0
- package/dist/src/domain/model/webhook/withdrawal/withdrawal-hook-event/entities/WithdrawalHookEvents.entity.js +8 -0
- package/dist/src/domain/model/webhook/withdrawal/withdrawal-hook-event/entities/WithdrawalHookEvents.entity.js.map +1 -0
- package/dist/src/domain/model/webhook/withdrawal/withdrawal-hook-event/entities/WithdrawalHookEventsEnriched.entity.d.ts +13 -0
- package/dist/src/domain/model/webhook/withdrawal/withdrawal-hook-event/entities/WithdrawalHookEventsEnriched.entity.js +8 -0
- package/dist/src/domain/model/webhook/withdrawal/withdrawal-hook-event/entities/WithdrawalHookEventsEnriched.entity.js.map +1 -0
- package/dist/src/domain/model/webhook/withdrawal/withdrawal-hook-event/entities/index.d.ts +3 -0
- package/dist/src/domain/model/webhook/withdrawal/withdrawal-hook-event/entities/index.js +3 -0
- package/dist/src/domain/model/webhook/withdrawal/withdrawal-hook-event/entities/index.js.map +1 -1
- package/dist/src/domain/model/webhook/withdrawal/withdrawal-hook-event/index.d.ts +2 -0
- package/dist/src/domain/model/webhook/withdrawal/withdrawal-hook-event/index.js +2 -0
- package/dist/src/domain/model/webhook/withdrawal/withdrawal-hook-event/index.js.map +1 -1
- package/dist/src/domain/model/webhook/withdrawal/withdrawal-hook-event/query/getAllQuery.dto.d.ts +6 -0
- package/dist/src/domain/model/webhook/withdrawal/withdrawal-hook-event/query/getAllQuery.dto.js +34 -0
- package/dist/src/domain/model/webhook/withdrawal/withdrawal-hook-event/query/getAllQuery.dto.js.map +1 -0
- package/dist/src/domain/model/webhook/withdrawal/withdrawal-hook-event/query/index.d.ts +1 -0
- package/dist/src/domain/model/webhook/withdrawal/withdrawal-hook-event/query/index.js +18 -0
- package/dist/src/domain/model/webhook/withdrawal/withdrawal-hook-event/query/index.js.map +1 -0
- package/dist/src/domain/model/withdraw/constants/WithdrawalKind.d.ts +2 -1
- package/dist/src/domain/model/withdraw/constants/WithdrawalKind.js +1 -0
- package/dist/src/domain/model/withdraw/constants/WithdrawalKind.js.map +1 -1
- package/dist/src/domain/model/withdraw/dtos/createWithdrawalConfig.dto.spec.d.ts +1 -0
- package/dist/src/domain/model/withdraw/dtos/createWithdrawalConfig.dto.spec.js +38 -0
- package/dist/src/domain/model/withdraw/dtos/createWithdrawalConfig.dto.spec.js.map +1 -0
- package/dist/src/domain/model/withdraw/dtos/index.d.ts +0 -1
- package/dist/src/domain/model/withdraw/dtos/index.js +0 -1
- package/dist/src/domain/model/withdraw/dtos/index.js.map +1 -1
- package/dist/src/domain/model/withdraw/dtos/preparedWithdrawal.dto.d.ts +1 -0
- package/dist/src/domain/model/withdraw/dtos/preparedWithdrawal.dto.js +5 -0
- package/dist/src/domain/model/withdraw/dtos/preparedWithdrawal.dto.js.map +1 -1
- package/dist/src/domain/model/withdraw/dtos/submitWithdrawal.dto.d.ts +1 -2
- package/dist/src/domain/model/withdraw/dtos/submitWithdrawal.dto.js +3 -5
- package/dist/src/domain/model/withdraw/dtos/submitWithdrawal.dto.js.map +1 -1
- package/dist/src/domain/model/withdraw/dtos/submitWithdrawal.dto.spec.d.ts +1 -0
- package/dist/src/domain/model/withdraw/dtos/submitWithdrawal.dto.spec.js +31 -0
- package/dist/src/domain/model/withdraw/dtos/submitWithdrawal.dto.spec.js.map +1 -0
- package/dist/src/domain/model/withdraw/entities/WithdrawalCustomerSwapRoutesResponse.entity.d.ts +2 -0
- package/dist/src/domain/model/withdraw/entities/WithdrawalCustomerSwapRoutesResponse.entity.js.map +1 -1
- package/dist/src/domain/model/withdraw/entities/WithdrawalDetail.entity.d.ts +10 -0
- package/dist/src/domain/model/withdraw/entities/WithdrawalDetail.entity.js +8 -0
- package/dist/src/domain/model/withdraw/entities/WithdrawalDetail.entity.js.map +1 -0
- package/dist/src/domain/model/withdraw/entities/index.d.ts +1 -0
- package/dist/src/domain/model/withdraw/entities/index.js +1 -0
- package/dist/src/domain/model/withdraw/entities/index.js.map +1 -1
- package/dist/src/domain/model/withdraw/preparedTransaction.spec.js +7 -6
- package/dist/src/domain/model/withdraw/preparedTransaction.spec.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +2 -2
- package/dist/src/domain/model/withdraw/dtos/submitWithdrawalSignedTx.dto.d.ts +0 -5
- package/dist/src/domain/model/withdraw/dtos/submitWithdrawalSignedTx.dto.js.map +0 -1
|
@@ -5,6 +5,7 @@ var TransactionStatus;
|
|
|
5
5
|
(function (TransactionStatus) {
|
|
6
6
|
TransactionStatus["INITIATED"] = "INITIATED";
|
|
7
7
|
TransactionStatus["PENDING"] = "PENDING";
|
|
8
|
+
TransactionStatus["BRIDGING"] = "BRIDGING";
|
|
8
9
|
TransactionStatus["SUCCESS"] = "SUCCESS";
|
|
9
10
|
TransactionStatus["FAILED"] = "FAILED";
|
|
10
11
|
TransactionStatus["CANCELED"] = "CANCELED";
|
|
@@ -17,6 +18,8 @@ const toTransactionStatus = (status) => {
|
|
|
17
18
|
return TransactionStatus.INITIATED;
|
|
18
19
|
case TransactionStatus.PENDING:
|
|
19
20
|
return TransactionStatus.PENDING;
|
|
21
|
+
case TransactionStatus.BRIDGING:
|
|
22
|
+
return TransactionStatus.BRIDGING;
|
|
20
23
|
case TransactionStatus.SUCCESS:
|
|
21
24
|
return TransactionStatus.SUCCESS;
|
|
22
25
|
case TransactionStatus.FAILED:
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TransactionStatus.js","sourceRoot":"","sources":["../../../../../../src/domain/model/transaction-meta/constants/TransactionStatus.ts"],"names":[],"mappings":";;;AAAA,IAAY,
|
|
1
|
+
{"version":3,"file":"TransactionStatus.js","sourceRoot":"","sources":["../../../../../../src/domain/model/transaction-meta/constants/TransactionStatus.ts"],"names":[],"mappings":";;;AAAA,IAAY,iBASX;AATD,WAAY,iBAAiB;IAC3B,4CAAuB,CAAA;IACvB,wCAAmB,CAAA;IACnB,0CAAqB,CAAA;IACrB,wCAAmB,CAAA;IACnB,sCAAiB,CAAA;IACjB,0CAAqB,CAAA;IACrB,wCAAmB,CAAA;IACnB,0CAAqB,CAAA;AACvB,CAAC,EATW,iBAAiB,iCAAjB,iBAAiB,QAS5B;AAEM,MAAM,mBAAmB,GAAG,CAAC,MAAc,EAAqB,EAAE;IACvE,QAAQ,MAAM,CAAC,WAAW,EAAE,EAAE,CAAC;QAC7B,KAAK,iBAAiB,CAAC,SAAS;YAC9B,OAAO,iBAAiB,CAAC,SAAS,CAAC;QACrC,KAAK,iBAAiB,CAAC,OAAO;YAC5B,OAAO,iBAAiB,CAAC,OAAO,CAAC;QACnC,KAAK,iBAAiB,CAAC,QAAQ;YAC7B,OAAO,iBAAiB,CAAC,QAAQ,CAAC;QACpC,KAAK,iBAAiB,CAAC,OAAO;YAC5B,OAAO,iBAAiB,CAAC,OAAO,CAAC;QACnC,KAAK,iBAAiB,CAAC,MAAM;YAC3B,OAAO,iBAAiB,CAAC,MAAM,CAAC;QAClC,KAAK,iBAAiB,CAAC,QAAQ;YAC7B,OAAO,iBAAiB,CAAC,QAAQ,CAAC;QACpC,KAAK,iBAAiB,CAAC,OAAO;YAC5B,OAAO,iBAAiB,CAAC,OAAO,CAAC;QACnC,KAAK,iBAAiB,CAAC,QAAQ;YAC7B,OAAO,iBAAiB,CAAC,QAAQ,CAAC;QACpC;YACE,MAAM,IAAI,KAAK,CAAC,+BAA+B,MAAM,EAAE,CAAC,CAAC;IAC7D,CAAC;AACH,CAAC,CAAC;AArBW,QAAA,mBAAmB,uBAqB9B"}
|
package/dist/src/domain/model/webhook/withdrawal/withdrawal-hook/dtos/createWithdrawalHook.dto.d.ts
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { CreatePaylinkHookBaseDto } from '../../../paylink/base-paylink-hook';
|
|
2
|
+
import { WithdrawalHookEvent } from '../../withdrawal-hook-event/entities/WithdrawalHookEvent.entity';
|
|
3
|
+
export declare class CreateWithdrawalHookDto extends CreatePaylinkHookBaseDto {
|
|
4
|
+
name: string;
|
|
5
|
+
sharedToken: string;
|
|
6
|
+
events: WithdrawalHookEvent[];
|
|
7
|
+
}
|
package/dist/src/domain/model/webhook/withdrawal/withdrawal-hook/dtos/createWithdrawalHook.dto.js
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
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.CreateWithdrawalHookDto = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
const base_paylink_hook_1 = require("../../../paylink/base-paylink-hook");
|
|
15
|
+
const WithdrawalHookEvent_entity_1 = require("../../withdrawal-hook-event/entities/WithdrawalHookEvent.entity");
|
|
16
|
+
class CreateWithdrawalHookDto extends base_paylink_hook_1.CreatePaylinkHookBaseDto {
|
|
17
|
+
}
|
|
18
|
+
exports.CreateWithdrawalHookDto = CreateWithdrawalHookDto;
|
|
19
|
+
__decorate([
|
|
20
|
+
(0, class_validator_1.IsString)(),
|
|
21
|
+
(0, class_validator_1.MaxLength)(64),
|
|
22
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
23
|
+
__metadata("design:type", String)
|
|
24
|
+
], CreateWithdrawalHookDto.prototype, "name", void 0);
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, class_validator_1.IsString)(),
|
|
27
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
28
|
+
__metadata("design:type", String)
|
|
29
|
+
], CreateWithdrawalHookDto.prototype, "sharedToken", void 0);
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, class_validator_1.IsArray)(),
|
|
32
|
+
(0, class_validator_1.ArrayNotEmpty)(),
|
|
33
|
+
(0, class_validator_1.IsEnum)(WithdrawalHookEvent_entity_1.WithdrawalHookEvent, { each: true }),
|
|
34
|
+
__metadata("design:type", Array)
|
|
35
|
+
], CreateWithdrawalHookDto.prototype, "events", void 0);
|
|
36
|
+
//# sourceMappingURL=createWithdrawalHook.dto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createWithdrawalHook.dto.js","sourceRoot":"","sources":["../../../../../../../../src/domain/model/webhook/withdrawal/withdrawal-hook/dtos/createWithdrawalHook.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAOyB;AACzB,0EAA8E;AAC9E,gHAAsG;AAEtG,MAAa,uBAAwB,SAAQ,4CAAwB;CAcpE;AAdD,0DAcC;AAVC;IAHC,IAAA,0BAAQ,GAAE;IACV,IAAA,2BAAS,EAAC,EAAE,CAAC;IACb,IAAA,4BAAU,GAAE;;qDACA;AAIb;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;4DACO;AAKpB;IAHC,IAAA,yBAAO,GAAE;IACT,IAAA,+BAAa,GAAE;IACf,IAAA,wBAAM,EAAC,gDAAmB,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;;uDACd"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { CreatePaylinkHookBaseDto } from '../../../paylink/base-paylink-hook';
|
|
2
|
+
import { WithdrawalHookEvent } from '../../withdrawal-hook-event/entities/WithdrawalHookEvent.entity';
|
|
3
|
+
export declare class CreateWithdrawalHookByApiKeyDto extends CreatePaylinkHookBaseDto {
|
|
4
|
+
name: string;
|
|
5
|
+
events: WithdrawalHookEvent[];
|
|
6
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
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.CreateWithdrawalHookByApiKeyDto = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
const base_paylink_hook_1 = require("../../../paylink/base-paylink-hook");
|
|
15
|
+
const WithdrawalHookEvent_entity_1 = require("../../withdrawal-hook-event/entities/WithdrawalHookEvent.entity");
|
|
16
|
+
class CreateWithdrawalHookByApiKeyDto extends base_paylink_hook_1.CreatePaylinkHookBaseDto {
|
|
17
|
+
}
|
|
18
|
+
exports.CreateWithdrawalHookByApiKeyDto = CreateWithdrawalHookByApiKeyDto;
|
|
19
|
+
__decorate([
|
|
20
|
+
(0, class_validator_1.IsString)(),
|
|
21
|
+
(0, class_validator_1.MaxLength)(64),
|
|
22
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
23
|
+
__metadata("design:type", String)
|
|
24
|
+
], CreateWithdrawalHookByApiKeyDto.prototype, "name", void 0);
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, class_validator_1.IsArray)(),
|
|
27
|
+
(0, class_validator_1.ArrayNotEmpty)(),
|
|
28
|
+
(0, class_validator_1.IsEnum)(WithdrawalHookEvent_entity_1.WithdrawalHookEvent, { each: true }),
|
|
29
|
+
__metadata("design:type", Array)
|
|
30
|
+
], CreateWithdrawalHookByApiKeyDto.prototype, "events", void 0);
|
|
31
|
+
//# sourceMappingURL=createWithdrawalHookByApiKey.dto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createWithdrawalHookByApiKey.dto.js","sourceRoot":"","sources":["../../../../../../../../src/domain/model/webhook/withdrawal/withdrawal-hook/dtos/createWithdrawalHookByApiKey.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAOyB;AACzB,0EAA8E;AAC9E,gHAAsG;AAEtG,MAAa,+BAAgC,SAAQ,4CAAwB;CAU5E;AAVD,0EAUC;AANC;IAHC,IAAA,0BAAQ,GAAE;IACV,IAAA,2BAAS,EAAC,EAAE,CAAC;IACb,IAAA,4BAAU,GAAE;;6DACA;AAKb;IAHC,IAAA,yBAAO,GAAE;IACT,IAAA,+BAAa,GAAE;IACf,IAAA,wBAAM,EAAC,gDAAmB,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;;+DACd"}
|
|
@@ -0,0 +1,21 @@
|
|
|
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("./createWithdrawalHook.dto"), exports);
|
|
18
|
+
__exportStar(require("./createWithdrawalHookByApiKey.dto"), exports);
|
|
19
|
+
__exportStar(require("./updateWithdrawalHook.dto"), exports);
|
|
20
|
+
__exportStar(require("./sendWithdrawalHookTestEvent.dto"), exports);
|
|
21
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../../src/domain/model/webhook/withdrawal/withdrawal-hook/dtos/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6DAA2C;AAC3C,qEAAmD;AACnD,6DAA2C;AAC3C,oEAAkD"}
|
|
@@ -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.SendWithdrawalHookTestEventDto = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
const WithdrawalHookEvent_entity_1 = require("../../withdrawal-hook-event/entities/WithdrawalHookEvent.entity");
|
|
15
|
+
class SendWithdrawalHookTestEventDto {
|
|
16
|
+
}
|
|
17
|
+
exports.SendWithdrawalHookTestEventDto = SendWithdrawalHookTestEventDto;
|
|
18
|
+
__decorate([
|
|
19
|
+
(0, class_validator_1.IsOptional)(),
|
|
20
|
+
(0, class_validator_1.IsEnum)(WithdrawalHookEvent_entity_1.WithdrawalHookEvent),
|
|
21
|
+
__metadata("design:type", String)
|
|
22
|
+
], SendWithdrawalHookTestEventDto.prototype, "event", void 0);
|
|
23
|
+
//# sourceMappingURL=sendWithdrawalHookTestEvent.dto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sendWithdrawalHookTestEvent.dto.js","sourceRoot":"","sources":["../../../../../../../../src/domain/model/webhook/withdrawal/withdrawal-hook/dtos/sendWithdrawalHookTestEvent.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAqD;AACrD,gHAAsG;AAEtG,MAAa,8BAA8B;CAI1C;AAJD,wEAIC;AADC;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,EAAC,gDAAmB,CAAC;;6DACA"}
|
package/dist/src/domain/model/webhook/withdrawal/withdrawal-hook/dtos/updateWithdrawalHook.dto.js
ADDED
|
@@ -0,0 +1,41 @@
|
|
|
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.UpdateWithdrawalHookDto = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
const WithdrawalHookEvent_entity_1 = require("../../withdrawal-hook-event/entities/WithdrawalHookEvent.entity");
|
|
15
|
+
class UpdateWithdrawalHookDto {
|
|
16
|
+
}
|
|
17
|
+
exports.UpdateWithdrawalHookDto = UpdateWithdrawalHookDto;
|
|
18
|
+
__decorate([
|
|
19
|
+
(0, class_validator_1.IsOptional)(),
|
|
20
|
+
(0, class_validator_1.IsUrl)(),
|
|
21
|
+
__metadata("design:type", String)
|
|
22
|
+
], UpdateWithdrawalHookDto.prototype, "targetUrl", void 0);
|
|
23
|
+
__decorate([
|
|
24
|
+
(0, class_validator_1.IsString)(),
|
|
25
|
+
(0, class_validator_1.MaxLength)(64),
|
|
26
|
+
(0, class_validator_1.IsOptional)(),
|
|
27
|
+
__metadata("design:type", String)
|
|
28
|
+
], UpdateWithdrawalHookDto.prototype, "name", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, class_validator_1.IsString)(),
|
|
31
|
+
(0, class_validator_1.IsOptional)(),
|
|
32
|
+
__metadata("design:type", String)
|
|
33
|
+
], UpdateWithdrawalHookDto.prototype, "sharedToken", void 0);
|
|
34
|
+
__decorate([
|
|
35
|
+
(0, class_validator_1.IsOptional)(),
|
|
36
|
+
(0, class_validator_1.IsArray)(),
|
|
37
|
+
(0, class_validator_1.ArrayNotEmpty)(),
|
|
38
|
+
(0, class_validator_1.IsEnum)(WithdrawalHookEvent_entity_1.WithdrawalHookEvent, { each: true }),
|
|
39
|
+
__metadata("design:type", Array)
|
|
40
|
+
], UpdateWithdrawalHookDto.prototype, "events", void 0);
|
|
41
|
+
//# sourceMappingURL=updateWithdrawalHook.dto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"updateWithdrawalHook.dto.js","sourceRoot":"","sources":["../../../../../../../../src/domain/model/webhook/withdrawal/withdrawal-hook/dtos/updateWithdrawalHook.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAQyB;AACzB,gHAAsG;AAEtG,MAAa,uBAAuB;CAmBnC;AAnBD,0DAmBC;AAhBC;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,uBAAK,GAAE;;0DACW;AAKnB;IAHC,IAAA,0BAAQ,GAAE;IACV,IAAA,2BAAS,EAAC,EAAE,CAAC;IACb,IAAA,4BAAU,GAAE;;qDACC;AAId;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;4DACQ;AAMrB;IAJC,IAAA,4BAAU,GAAE;IACZ,IAAA,yBAAO,GAAE;IACT,IAAA,+BAAa,GAAE;IACf,IAAA,wBAAM,EAAC,gDAAmB,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;;uDACb"}
|
package/dist/src/domain/model/webhook/withdrawal/withdrawal-hook/entities/WithdrawalHook.entity.d.ts
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Entity } from '../../../../entity';
|
|
2
|
+
export declare class WithdrawalHook extends Entity {
|
|
3
|
+
id: string;
|
|
4
|
+
company: string;
|
|
5
|
+
targetUrl: string;
|
|
6
|
+
sharedToken?: string;
|
|
7
|
+
creator?: string;
|
|
8
|
+
name: string;
|
|
9
|
+
events: string[];
|
|
10
|
+
inactive?: boolean;
|
|
11
|
+
createdAt: string;
|
|
12
|
+
}
|
package/dist/src/domain/model/webhook/withdrawal/withdrawal-hook/entities/WithdrawalHook.entity.js
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.WithdrawalHook = void 0;
|
|
4
|
+
const entity_1 = require("../../../../entity");
|
|
5
|
+
class WithdrawalHook extends entity_1.Entity {
|
|
6
|
+
}
|
|
7
|
+
exports.WithdrawalHook = WithdrawalHook;
|
|
8
|
+
//# sourceMappingURL=WithdrawalHook.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"WithdrawalHook.entity.js","sourceRoot":"","sources":["../../../../../../../../src/domain/model/webhook/withdrawal/withdrawal-hook/entities/WithdrawalHook.entity.ts"],"names":[],"mappings":";;;AAAA,+CAA4C;AAE5C,MAAa,cAAe,SAAQ,eAAM;CAkBzC;AAlBD,wCAkBC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export * from './WithdrawalHook.entity';
|
|
@@ -1,3 +1,18 @@
|
|
|
1
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
|
+
};
|
|
2
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./WithdrawalHook.entity"), exports);
|
|
3
18
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../../src/domain/model/webhook/withdrawal/withdrawal-hook/entities/index.ts"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../../src/domain/model/webhook/withdrawal/withdrawal-hook/entities/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0DAAwC"}
|
|
@@ -14,5 +14,7 @@ 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("./dtos"), exports);
|
|
17
18
|
__exportStar(require("./entities"), exports);
|
|
19
|
+
__exportStar(require("./query"), exports);
|
|
18
20
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/domain/model/webhook/withdrawal/withdrawal-hook/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6CAA2B"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/domain/model/webhook/withdrawal/withdrawal-hook/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yCAAuB;AACvB,6CAA2B;AAC3B,0CAAwB"}
|
|
@@ -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.GetAllWithdrawalHooksQueryDto = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
const shared_1 = require("../../../../shared");
|
|
15
|
+
class GetAllWithdrawalHooksQueryDto extends shared_1.BaseQueryDto {
|
|
16
|
+
}
|
|
17
|
+
exports.GetAllWithdrawalHooksQueryDto = GetAllWithdrawalHooksQueryDto;
|
|
18
|
+
__decorate([
|
|
19
|
+
(0, class_validator_1.IsBooleanString)(),
|
|
20
|
+
(0, class_validator_1.IsOptional)(),
|
|
21
|
+
__metadata("design:type", String)
|
|
22
|
+
], GetAllWithdrawalHooksQueryDto.prototype, "withInactive", void 0);
|
|
23
|
+
//# sourceMappingURL=getAllQuery.dto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getAllQuery.dto.js","sourceRoot":"","sources":["../../../../../../../../src/domain/model/webhook/withdrawal/withdrawal-hook/query/getAllQuery.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA8D;AAC9D,+CAAkD;AAElD,MAAa,6BAA8B,SAAQ,qBAAY;CAI9D;AAJD,sEAIC;AADC;IAFC,IAAA,iCAAe,GAAE;IACjB,IAAA,4BAAU,GAAE;;mEACS"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './getAllQuery.dto';
|
|
@@ -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("./getAllQuery.dto"), exports);
|
|
18
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../../src/domain/model/webhook/withdrawal/withdrawal-hook/query/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oDAAkC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { WithdrawalHookEvent, WithdrawalHookEventStatus } from '../entities';
|
|
2
|
+
export declare class CreateWithdrawalHookEventDto {
|
|
3
|
+
payload: string;
|
|
4
|
+
companyId: string;
|
|
5
|
+
withdrawalHookId: string;
|
|
6
|
+
withdrawalDetailId: string;
|
|
7
|
+
event: WithdrawalHookEvent;
|
|
8
|
+
status?: WithdrawalHookEventStatus;
|
|
9
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
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.CreateWithdrawalHookEventDto = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
const entities_1 = require("../entities");
|
|
15
|
+
class CreateWithdrawalHookEventDto {
|
|
16
|
+
}
|
|
17
|
+
exports.CreateWithdrawalHookEventDto = CreateWithdrawalHookEventDto;
|
|
18
|
+
__decorate([
|
|
19
|
+
(0, class_validator_1.IsString)(),
|
|
20
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
21
|
+
__metadata("design:type", String)
|
|
22
|
+
], CreateWithdrawalHookEventDto.prototype, "payload", void 0);
|
|
23
|
+
__decorate([
|
|
24
|
+
(0, class_validator_1.IsString)(),
|
|
25
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
26
|
+
__metadata("design:type", String)
|
|
27
|
+
], CreateWithdrawalHookEventDto.prototype, "companyId", void 0);
|
|
28
|
+
__decorate([
|
|
29
|
+
(0, class_validator_1.IsString)(),
|
|
30
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
31
|
+
__metadata("design:type", String)
|
|
32
|
+
], CreateWithdrawalHookEventDto.prototype, "withdrawalHookId", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, class_validator_1.IsString)(),
|
|
35
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
36
|
+
__metadata("design:type", String)
|
|
37
|
+
], CreateWithdrawalHookEventDto.prototype, "withdrawalDetailId", void 0);
|
|
38
|
+
__decorate([
|
|
39
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
40
|
+
(0, class_validator_1.IsEnum)(entities_1.WithdrawalHookEvent),
|
|
41
|
+
__metadata("design:type", String)
|
|
42
|
+
], CreateWithdrawalHookEventDto.prototype, "event", void 0);
|
|
43
|
+
__decorate([
|
|
44
|
+
(0, class_validator_1.IsOptional)(),
|
|
45
|
+
(0, class_validator_1.IsEnum)(entities_1.WithdrawalHookEventStatus),
|
|
46
|
+
__metadata("design:type", String)
|
|
47
|
+
], CreateWithdrawalHookEventDto.prototype, "status", void 0);
|
|
48
|
+
//# sourceMappingURL=createWithdrawalHookEvent.dto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createWithdrawalHookEvent.dto.js","sourceRoot":"","sources":["../../../../../../../../src/domain/model/webhook/withdrawal/withdrawal-hook-event/dtos/createWithdrawalHookEvent.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA2E;AAC3E,0CAA6E;AAE7E,MAAa,4BAA4B;CAwBxC;AAxBD,oEAwBC;AArBC;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;6DACG;AAIhB;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;+DACK;AAIlB;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;sEACY;AAIzB;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;wEACc;AAI3B;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,EAAC,8BAAmB,CAAC;;2DACD;AAI3B;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,EAAC,oCAAyB,CAAC;;4DACC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
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("./createWithdrawalHookEvent.dto"), exports);
|
|
18
|
+
__exportStar(require("./updateWithdrawalHookEvent.dto"), exports);
|
|
19
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../../src/domain/model/webhook/withdrawal/withdrawal-hook-event/dtos/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,kEAAgD;AAChD,kEAAgD"}
|
|
@@ -0,0 +1,33 @@
|
|
|
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.UpdateWithdrawalHookEventDto = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
const entities_1 = require("../entities");
|
|
15
|
+
class UpdateWithdrawalHookEventDto {
|
|
16
|
+
}
|
|
17
|
+
exports.UpdateWithdrawalHookEventDto = UpdateWithdrawalHookEventDto;
|
|
18
|
+
__decorate([
|
|
19
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
20
|
+
(0, class_validator_1.IsEnum)(entities_1.WithdrawalHookEventStatus),
|
|
21
|
+
__metadata("design:type", String)
|
|
22
|
+
], UpdateWithdrawalHookEventDto.prototype, "status", void 0);
|
|
23
|
+
__decorate([
|
|
24
|
+
(0, class_validator_1.IsNumber)(),
|
|
25
|
+
(0, class_validator_1.IsOptional)(),
|
|
26
|
+
__metadata("design:type", Number)
|
|
27
|
+
], UpdateWithdrawalHookEventDto.prototype, "attemptsLeft", void 0);
|
|
28
|
+
__decorate([
|
|
29
|
+
(0, class_validator_1.IsString)(),
|
|
30
|
+
(0, class_validator_1.IsOptional)(),
|
|
31
|
+
__metadata("design:type", String)
|
|
32
|
+
], UpdateWithdrawalHookEventDto.prototype, "error", void 0);
|
|
33
|
+
//# sourceMappingURL=updateWithdrawalHookEvent.dto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"updateWithdrawalHookEvent.dto.js","sourceRoot":"","sources":["../../../../../../../../src/domain/model/webhook/withdrawal/withdrawal-hook-event/dtos/updateWithdrawalHookEvent.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAMyB;AACzB,0CAAwD;AAExD,MAAa,4BAA4B;CAYxC;AAZD,oEAYC;AATC;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,EAAC,oCAAyB,CAAC;;4DACA;AAIlC;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;kEACS;AAItB;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;2DACE"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Entity } from '../../../../entity';
|
|
2
|
+
import { WithdrawalHookEvent } from './WithdrawalHookEvent.entity';
|
|
3
|
+
import { WithdrawalHookEventStatus } from './WithdrawalHookEventStatus.entity';
|
|
4
|
+
export declare class BaseWithdrawalHookEvents extends Entity {
|
|
5
|
+
id: string;
|
|
6
|
+
company: string;
|
|
7
|
+
event: WithdrawalHookEvent;
|
|
8
|
+
status: WithdrawalHookEventStatus;
|
|
9
|
+
attemptsLeft: number;
|
|
10
|
+
createdAt: string;
|
|
11
|
+
updatedAt: string;
|
|
12
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.BaseWithdrawalHookEvents = void 0;
|
|
4
|
+
const entity_1 = require("../../../../entity");
|
|
5
|
+
class BaseWithdrawalHookEvents extends entity_1.Entity {
|
|
6
|
+
}
|
|
7
|
+
exports.BaseWithdrawalHookEvents = BaseWithdrawalHookEvents;
|
|
8
|
+
//# sourceMappingURL=BaseWithdrawalHookEvents.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BaseWithdrawalHookEvents.entity.js","sourceRoot":"","sources":["../../../../../../../../src/domain/model/webhook/withdrawal/withdrawal-hook-event/entities/BaseWithdrawalHookEvents.entity.ts"],"names":[],"mappings":";;;AAAA,+CAA4C;AAI5C,MAAa,wBAAyB,SAAQ,eAAM;CAcnD;AAdD,4DAcC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.WithdrawalHookEvents = void 0;
|
|
4
|
+
const BaseWithdrawalHookEvents_entity_1 = require("./BaseWithdrawalHookEvents.entity");
|
|
5
|
+
class WithdrawalHookEvents extends BaseWithdrawalHookEvents_entity_1.BaseWithdrawalHookEvents {
|
|
6
|
+
}
|
|
7
|
+
exports.WithdrawalHookEvents = WithdrawalHookEvents;
|
|
8
|
+
//# sourceMappingURL=WithdrawalHookEvents.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"WithdrawalHookEvents.entity.js","sourceRoot":"","sources":["../../../../../../../../src/domain/model/webhook/withdrawal/withdrawal-hook-event/entities/WithdrawalHookEvents.entity.ts"],"names":[],"mappings":";;;AAAA,uFAA6E;AAE7E,MAAa,oBAAqB,SAAQ,0DAAwB;CAIjE;AAJD,oDAIC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { BaseWithdrawalHookEvents } from './BaseWithdrawalHookEvents.entity';
|
|
2
|
+
export interface PopulatedWithdrawalHook {
|
|
3
|
+
id: string;
|
|
4
|
+
name: string;
|
|
5
|
+
targetUrl: string;
|
|
6
|
+
events: string[];
|
|
7
|
+
inactive?: boolean;
|
|
8
|
+
createdAt: string;
|
|
9
|
+
}
|
|
10
|
+
export declare class WithdrawalHookEventsEnriched extends BaseWithdrawalHookEvents {
|
|
11
|
+
withdrawalHook: PopulatedWithdrawalHook | null;
|
|
12
|
+
withdrawalDetail: string | null;
|
|
13
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.WithdrawalHookEventsEnriched = void 0;
|
|
4
|
+
const BaseWithdrawalHookEvents_entity_1 = require("./BaseWithdrawalHookEvents.entity");
|
|
5
|
+
class WithdrawalHookEventsEnriched extends BaseWithdrawalHookEvents_entity_1.BaseWithdrawalHookEvents {
|
|
6
|
+
}
|
|
7
|
+
exports.WithdrawalHookEventsEnriched = WithdrawalHookEventsEnriched;
|
|
8
|
+
//# sourceMappingURL=WithdrawalHookEventsEnriched.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"WithdrawalHookEventsEnriched.entity.js","sourceRoot":"","sources":["../../../../../../../../src/domain/model/webhook/withdrawal/withdrawal-hook-event/entities/WithdrawalHookEventsEnriched.entity.ts"],"names":[],"mappings":";;;AAAA,uFAA6E;AAW7E,MAAa,4BAA6B,SAAQ,0DAAwB;CAIzE;AAJD,oEAIC"}
|