@fiado/type-kit 1.0.43 → 1.0.45

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,3 @@
1
+ import { GenericMessageRequest } from "../../genericMessage/dto/GenericMessageRequest";
2
+ export declare class EventBridgeMessageRequest<T> extends GenericMessageRequest<T> {
3
+ }
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.EventBridgeMessageRequest = void 0;
4
+ const GenericMessageRequest_1 = require("../../genericMessage/dto/GenericMessageRequest");
5
+ class EventBridgeMessageRequest extends GenericMessageRequest_1.GenericMessageRequest {
6
+ }
7
+ exports.EventBridgeMessageRequest = EventBridgeMessageRequest;
@@ -0,0 +1 @@
1
+ export * from './dto/EventBridgeMessageRequest';
@@ -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
+ //dto
18
+ __exportStar(require("./dto/EventBridgeMessageRequest"), exports);
@@ -0,0 +1,7 @@
1
+ import { GenericMessageSourceEnum } from "../enums/GenericMessageSourceEnum";
2
+ export declare class GenericMessageRequest<T> {
3
+ id?: string;
4
+ source: GenericMessageSourceEnum;
5
+ process: string;
6
+ payload(input: T): T;
7
+ }
@@ -9,14 +9,22 @@ var __metadata = (this && this.__metadata) || function (k, v) {
9
9
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.GroupDirectoryRetationsUpdateRequest = void 0;
12
+ exports.GenericMessageRequest = void 0;
13
13
  const class_validator_1 = require("class-validator");
14
- class GroupDirectoryRetationsUpdateRequest {
14
+ const GenericMessageSourceEnum_1 = require("../enums/GenericMessageSourceEnum");
15
+ class GenericMessageRequest {
16
+ payload(input) { return input; }
15
17
  }
16
- exports.GroupDirectoryRetationsUpdateRequest = GroupDirectoryRetationsUpdateRequest;
18
+ exports.GenericMessageRequest = GenericMessageRequest;
19
+ __decorate([
20
+ (0, class_validator_1.IsUUID)(),
21
+ __metadata("design:type", String)
22
+ ], GenericMessageRequest.prototype, "id", void 0);
23
+ __decorate([
24
+ (0, class_validator_1.IsEnum)(GenericMessageSourceEnum_1.GenericMessageSourceEnum),
25
+ __metadata("design:type", String)
26
+ ], GenericMessageRequest.prototype, "source", void 0);
17
27
  __decorate([
18
- (0, class_validator_1.IsOptional)(),
19
28
  (0, class_validator_1.IsString)(),
20
- (0, class_validator_1.Length)(1, 20),
21
29
  __metadata("design:type", String)
22
- ], GroupDirectoryRetationsUpdateRequest.prototype, "agent", void 0);
30
+ ], GenericMessageRequest.prototype, "process", void 0);
@@ -0,0 +1,3 @@
1
+ export declare enum GenericMessageSourceEnum {
2
+ EVENT_BRIDGE = "EVENT_BRIDGE"
3
+ }
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GenericMessageSourceEnum = void 0;
4
+ var GenericMessageSourceEnum;
5
+ (function (GenericMessageSourceEnum) {
6
+ GenericMessageSourceEnum["EVENT_BRIDGE"] = "EVENT_BRIDGE";
7
+ })(GenericMessageSourceEnum || (exports.GenericMessageSourceEnum = GenericMessageSourceEnum = {}));
@@ -0,0 +1 @@
1
+ export * from './enums/GenericMessageSourceEnum';
@@ -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
+ //enums
18
+ __exportStar(require("./enums/GenericMessageSourceEnum"), exports);
package/bin/index.d.ts CHANGED
@@ -14,3 +14,5 @@ export * as Header from './header';
14
14
  export * as ServicePayment from './servicePayment';
15
15
  export * as NotificationMessages from './notificationMessages';
16
16
  export * as SessionActivity from './sessionActivity';
17
+ export * as EventBridgeMessage from './eventBridge';
18
+ export * as GenericMessage from './genericMessage';
package/bin/index.js CHANGED
@@ -23,7 +23,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
23
23
  return result;
24
24
  };
25
25
  Object.defineProperty(exports, "__esModule", { value: true });
26
- exports.SessionActivity = exports.NotificationMessages = exports.ServicePayment = exports.Header = exports.Identity = exports.Group = exports.File = exports.ExchangeRate = exports.Directory = exports.Currency = exports.Country = exports.Card = exports.Authentication = exports.App = exports.Address = exports.Account = void 0;
26
+ exports.GenericMessage = exports.EventBridgeMessage = exports.SessionActivity = exports.NotificationMessages = exports.ServicePayment = exports.Header = exports.Identity = exports.Group = exports.File = exports.ExchangeRate = exports.Directory = exports.Currency = exports.Country = exports.Card = exports.Authentication = exports.App = exports.Address = exports.Account = void 0;
27
27
  exports.Account = __importStar(require("./account"));
28
28
  exports.Address = __importStar(require("./address"));
29
29
  exports.App = __importStar(require("./app"));
@@ -40,3 +40,5 @@ exports.Header = __importStar(require("./header"));
40
40
  exports.ServicePayment = __importStar(require("./servicePayment"));
41
41
  exports.NotificationMessages = __importStar(require("./notificationMessages"));
42
42
  exports.SessionActivity = __importStar(require("./sessionActivity"));
43
+ exports.EventBridgeMessage = __importStar(require("./eventBridge"));
44
+ exports.GenericMessage = __importStar(require("./genericMessage"));
@@ -1,4 +1,6 @@
1
1
  export declare enum NotificationId {
2
- ISSUED_ACCOUNT_USA = "ISSUED_ACCOUNT_USA",
3
- ISSUED_ACCOUNT_MEX = "ISSUED_ACCOUNT_MEX"
2
+ ISSUED_ACCOUNT_USA = "ISSUED_ACCOUNT_USA",//Mesnaje de apertura de cuentas y tarjeta USA
3
+ ISSUED_ACCOUNT_MEX = "ISSUED_ACCOUNT_MEX",//Mesnaje de apertura de cuentas y tarjeta MEX
4
+ ONB_ERROR_VALID_DOCUMENT = "ONB_ERROR_VALID_DOCUMENT",// Mensaje cuando el resultado del onboarding es error en la validación del documento
5
+ ONB_ERROR_FACEMATCH = "ONB_ERROR_FACEMATCH"
4
6
  }
@@ -5,4 +5,6 @@ var NotificationId;
5
5
  (function (NotificationId) {
6
6
  NotificationId["ISSUED_ACCOUNT_USA"] = "ISSUED_ACCOUNT_USA";
7
7
  NotificationId["ISSUED_ACCOUNT_MEX"] = "ISSUED_ACCOUNT_MEX";
8
+ NotificationId["ONB_ERROR_VALID_DOCUMENT"] = "ONB_ERROR_VALID_DOCUMENT";
9
+ NotificationId["ONB_ERROR_FACEMATCH"] = "ONB_ERROR_FACEMATCH";
8
10
  })(NotificationId || (exports.NotificationId = NotificationId = {}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fiado/type-kit",
3
- "version": "1.0.43",
3
+ "version": "1.0.45",
4
4
  "description": "",
5
5
  "main": "bin/index.js",
6
6
  "types": "bin/index.d.ts",
@@ -0,0 +1,5 @@
1
+ import { GenericMessageRequest } from "../../genericMessage/dto/GenericMessageRequest";
2
+
3
+ export class EventBridgeMessageRequest<T> extends GenericMessageRequest<T>{
4
+
5
+ }
@@ -0,0 +1,2 @@
1
+ //dto
2
+ export * from './dto/EventBridgeMessageRequest';
@@ -0,0 +1,17 @@
1
+ import { IsString, IsUUID, IsEnum } from "class-validator";
2
+
3
+
4
+ import { GenericMessageSourceEnum } from "../enums/GenericMessageSourceEnum";
5
+
6
+
7
+ export class GenericMessageRequest<T> {
8
+
9
+ @IsUUID()
10
+ id?: string;
11
+ @IsEnum(GenericMessageSourceEnum)
12
+ source: GenericMessageSourceEnum;
13
+ @IsString()
14
+ process:string
15
+
16
+ payload(input:T){ return input}
17
+ }
@@ -0,0 +1,3 @@
1
+ export enum GenericMessageSourceEnum {
2
+ EVENT_BRIDGE='EVENT_BRIDGE'
3
+ }
@@ -0,0 +1,2 @@
1
+ //enums
2
+ export * from './enums/GenericMessageSourceEnum';
package/src/index.ts CHANGED
@@ -14,6 +14,8 @@ export * as Header from './header';
14
14
  export * as ServicePayment from './servicePayment';
15
15
  export * as NotificationMessages from './notificationMessages';
16
16
  export * as SessionActivity from './sessionActivity';
17
+ export * as EventBridgeMessage from './eventBridge'
18
+ export * as GenericMessage from './genericMessage'
17
19
 
18
20
 
19
21
 
@@ -3,8 +3,11 @@
3
3
 
4
4
  export enum NotificationId {
5
5
 
6
- ISSUED_ACCOUNT_USA = "ISSUED_ACCOUNT_USA",
7
- ISSUED_ACCOUNT_MEX = "ISSUED_ACCOUNT_MEX"
6
+ ISSUED_ACCOUNT_USA = "ISSUED_ACCOUNT_USA", //Mesnaje de apertura de cuentas y tarjeta USA
7
+ ISSUED_ACCOUNT_MEX = "ISSUED_ACCOUNT_MEX", //Mesnaje de apertura de cuentas y tarjeta MEX
8
+ ONB_ERROR_VALID_DOCUMENT = "ONB_ERROR_VALID_DOCUMENT", // Mensaje cuando el resultado del onboarding es error en la validación del documento
9
+ ONB_ERROR_FACEMATCH = "ONB_ERROR_FACEMATCH", // Mensaje cuando el resultado del onboarding es error porque no hace match en video selfie con el documento
10
+
8
11
 
9
12
 
10
13
 
@@ -1,3 +0,0 @@
1
- export declare class GroupDirectoryRetationsUpdateRequest {
2
- agent: string;
3
- }