@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.
@@ -0,0 +1,6 @@
1
+ import { WebhookEventItem } from "./WebhookEventItem";
2
+ export declare class GetEventsSinceResponse {
3
+ items: WebhookEventItem[];
4
+ /** Cursor en base64 para pedir la siguiente pagina. `null` cuando no hay mas. */
5
+ index: string | null;
6
+ }
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GetEventsSinceResponse = void 0;
4
+ class GetEventsSinceResponse {
5
+ }
6
+ exports.GetEventsSinceResponse = GetEventsSinceResponse;
@@ -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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fiado/type-kit",
3
- "version": "3.307.0",
3
+ "version": "3.308.0",
4
4
  "description": "",
5
5
  "main": "bin/index.js",
6
6
  "types": "bin/index.d.ts",
@@ -0,0 +1,7 @@
1
+ import { WebhookEventItem } from "./WebhookEventItem";
2
+
3
+ export class GetEventsSinceResponse {
4
+ items: WebhookEventItem[];
5
+ /** Cursor en base64 para pedir la siguiente pagina. `null` cuando no hay mas. */
6
+ index: string | null;
7
+ }
@@ -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';
@@ -17,4 +17,5 @@ export enum ExpedienteAccessActionEnum {
17
17
  VIEW_APPLICATIONS = 'VIEW_APPLICATIONS',
18
18
  VIEW_PAYMENTS = 'VIEW_PAYMENTS',
19
19
  VIEW_AUDIT_LOG = 'VIEW_AUDIT_LOG',
20
+ VIEW_MESSAGES = 'VIEW_MESSAGES',
20
21
  }