@fiado/type-kit 3.307.0 → 3.308.0
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/bin/centralPayments/dtos/GetEventsSinceResponse.d.ts +6 -0
- package/bin/centralPayments/dtos/GetEventsSinceResponse.js +6 -0
- package/bin/centralPayments/dtos/WebhookEventItem.d.ts +15 -0
- package/bin/centralPayments/dtos/WebhookEventItem.js +10 -0
- package/bin/centralPayments/index.d.ts +2 -0
- package/bin/centralPayments/index.js +2 -0
- package/bin/credit/enums/ExpedienteAccessActionEnum.d.ts +2 -1
- package/bin/credit/enums/ExpedienteAccessActionEnum.js +1 -0
- package/package.json +1 -1
- package/src/centralPayments/dtos/GetEventsSinceResponse.ts +7 -0
- package/src/centralPayments/dtos/WebhookEventItem.ts +15 -0
- package/src/centralPayments/index.ts +2 -0
- package/src/credit/enums/ExpedienteAccessActionEnum.ts +1 -0
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Un evento de webhook de Central Payments, tal como lo devuelve
|
|
3
|
+
* `central-payments-webhook` al consultarlo por fecha.
|
|
4
|
+
*/
|
|
5
|
+
export declare class WebhookEventItem {
|
|
6
|
+
id: string;
|
|
7
|
+
type: string;
|
|
8
|
+
cardholderId: string;
|
|
9
|
+
cardId: string;
|
|
10
|
+
/** Epoch en milisegundos. Dynamoose serializa el Date de `timestamps: true` como Number. */
|
|
11
|
+
createdAt: number;
|
|
12
|
+
/** Payload crudo del proveedor. Su forma depende del `type` del evento. */
|
|
13
|
+
event: unknown;
|
|
14
|
+
error?: unknown;
|
|
15
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.WebhookEventItem = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* Un evento de webhook de Central Payments, tal como lo devuelve
|
|
6
|
+
* `central-payments-webhook` al consultarlo por fecha.
|
|
7
|
+
*/
|
|
8
|
+
class WebhookEventItem {
|
|
9
|
+
}
|
|
10
|
+
exports.WebhookEventItem = WebhookEventItem;
|
|
@@ -7,6 +7,8 @@ export * from './dtos/GetMerchantLocationsResponse';
|
|
|
7
7
|
export * from './dtos/MerchantLocation';
|
|
8
8
|
export * from './dtos/CentralPaymentsTransactionInfo';
|
|
9
9
|
export * from './dtos/CentralWebhookEventRequest';
|
|
10
|
+
export * from './dtos/WebhookEventItem';
|
|
11
|
+
export * from './dtos/GetEventsSinceResponse';
|
|
10
12
|
export * from './enums/ServiceStatusEnum';
|
|
11
13
|
export * from './enums/MerchantLocationDistanceUnitEnum';
|
|
12
14
|
export * from './enums/CentralPaymentTransactionTypeEnum';
|
|
@@ -24,6 +24,8 @@ __exportStar(require("./dtos/GetMerchantLocationsResponse"), exports);
|
|
|
24
24
|
__exportStar(require("./dtos/MerchantLocation"), exports);
|
|
25
25
|
__exportStar(require("./dtos/CentralPaymentsTransactionInfo"), exports);
|
|
26
26
|
__exportStar(require("./dtos/CentralWebhookEventRequest"), exports);
|
|
27
|
+
__exportStar(require("./dtos/WebhookEventItem"), exports);
|
|
28
|
+
__exportStar(require("./dtos/GetEventsSinceResponse"), exports);
|
|
27
29
|
// central payments enums
|
|
28
30
|
__exportStar(require("./enums/ServiceStatusEnum"), exports);
|
|
29
31
|
__exportStar(require("./enums/MerchantLocationDistanceUnitEnum"), exports);
|
|
@@ -16,5 +16,6 @@ export declare enum ExpedienteAccessActionEnum {
|
|
|
16
16
|
VIEW_OFFERS = "VIEW_OFFERS",
|
|
17
17
|
VIEW_APPLICATIONS = "VIEW_APPLICATIONS",
|
|
18
18
|
VIEW_PAYMENTS = "VIEW_PAYMENTS",
|
|
19
|
-
VIEW_AUDIT_LOG = "VIEW_AUDIT_LOG"
|
|
19
|
+
VIEW_AUDIT_LOG = "VIEW_AUDIT_LOG",
|
|
20
|
+
VIEW_MESSAGES = "VIEW_MESSAGES"
|
|
20
21
|
}
|
|
@@ -21,4 +21,5 @@ var ExpedienteAccessActionEnum;
|
|
|
21
21
|
ExpedienteAccessActionEnum["VIEW_APPLICATIONS"] = "VIEW_APPLICATIONS";
|
|
22
22
|
ExpedienteAccessActionEnum["VIEW_PAYMENTS"] = "VIEW_PAYMENTS";
|
|
23
23
|
ExpedienteAccessActionEnum["VIEW_AUDIT_LOG"] = "VIEW_AUDIT_LOG";
|
|
24
|
+
ExpedienteAccessActionEnum["VIEW_MESSAGES"] = "VIEW_MESSAGES";
|
|
24
25
|
})(ExpedienteAccessActionEnum || (exports.ExpedienteAccessActionEnum = ExpedienteAccessActionEnum = {}));
|
package/package.json
CHANGED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Un evento de webhook de Central Payments, tal como lo devuelve
|
|
3
|
+
* `central-payments-webhook` al consultarlo por fecha.
|
|
4
|
+
*/
|
|
5
|
+
export class WebhookEventItem {
|
|
6
|
+
id: string;
|
|
7
|
+
type: string;
|
|
8
|
+
cardholderId: string;
|
|
9
|
+
cardId: string;
|
|
10
|
+
/** Epoch en milisegundos. Dynamoose serializa el Date de `timestamps: true` como Number. */
|
|
11
|
+
createdAt: number;
|
|
12
|
+
/** Payload crudo del proveedor. Su forma depende del `type` del evento. */
|
|
13
|
+
event: unknown;
|
|
14
|
+
error?: unknown;
|
|
15
|
+
}
|
|
@@ -9,6 +9,8 @@ export * from './dtos/GetMerchantLocationsResponse';
|
|
|
9
9
|
export * from './dtos/MerchantLocation';
|
|
10
10
|
export * from './dtos/CentralPaymentsTransactionInfo';
|
|
11
11
|
export * from './dtos/CentralWebhookEventRequest';
|
|
12
|
+
export * from './dtos/WebhookEventItem';
|
|
13
|
+
export * from './dtos/GetEventsSinceResponse';
|
|
12
14
|
|
|
13
15
|
// central payments enums
|
|
14
16
|
export * from './enums/ServiceStatusEnum';
|