@fiado/type-kit 1.1.17 → 1.1.19

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.
@@ -1,6 +1,5 @@
1
1
  import { CountryId } from '../../country';
2
2
  export declare class AccountBeneficiaryCreateRequest {
3
- accountId: string;
4
3
  countryId: CountryId;
5
4
  phoneNumber?: string;
6
5
  fullName: string;
@@ -16,11 +16,6 @@ const IsPhoneNumberConstraint_1 = require("../../card/validations/IsPhoneNumberC
16
16
  class AccountBeneficiaryCreateRequest {
17
17
  }
18
18
  exports.AccountBeneficiaryCreateRequest = AccountBeneficiaryCreateRequest;
19
- __decorate([
20
- (0, class_validator_1.IsNotEmpty)(),
21
- (0, class_validator_1.IsString)(),
22
- __metadata("design:type", String)
23
- ], AccountBeneficiaryCreateRequest.prototype, "accountId", void 0);
24
19
  __decorate([
25
20
  (0, class_validator_1.IsNotEmpty)(),
26
21
  (0, class_validator_1.IsEnum)(country_1.CountryId),
@@ -0,0 +1,8 @@
1
+ export declare class ContractCreateRequest {
2
+ id: string;
3
+ indexName: string;
4
+ dob: string;
5
+ curp: string;
6
+ createDate: string;
7
+ signBase64: string;
8
+ }
@@ -0,0 +1,46 @@
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.ContractCreateRequest = void 0;
13
+ const class_validator_1 = require("class-validator");
14
+ class ContractCreateRequest {
15
+ }
16
+ exports.ContractCreateRequest = ContractCreateRequest;
17
+ __decorate([
18
+ (0, class_validator_1.IsString)(),
19
+ (0, class_validator_1.IsNotEmpty)(),
20
+ __metadata("design:type", String)
21
+ ], ContractCreateRequest.prototype, "id", void 0);
22
+ __decorate([
23
+ (0, class_validator_1.IsString)(),
24
+ (0, class_validator_1.IsNotEmpty)(),
25
+ __metadata("design:type", String)
26
+ ], ContractCreateRequest.prototype, "indexName", void 0);
27
+ __decorate([
28
+ (0, class_validator_1.IsString)(),
29
+ (0, class_validator_1.IsNotEmpty)(),
30
+ __metadata("design:type", String)
31
+ ], ContractCreateRequest.prototype, "dob", void 0);
32
+ __decorate([
33
+ (0, class_validator_1.IsString)(),
34
+ (0, class_validator_1.IsNotEmpty)(),
35
+ __metadata("design:type", String)
36
+ ], ContractCreateRequest.prototype, "curp", void 0);
37
+ __decorate([
38
+ (0, class_validator_1.IsString)(),
39
+ (0, class_validator_1.IsNotEmpty)(),
40
+ __metadata("design:type", String)
41
+ ], ContractCreateRequest.prototype, "createDate", void 0);
42
+ __decorate([
43
+ (0, class_validator_1.IsString)(),
44
+ (0, class_validator_1.IsNotEmpty)(),
45
+ __metadata("design:type", String)
46
+ ], ContractCreateRequest.prototype, "signBase64", void 0);
@@ -0,0 +1,3 @@
1
+ export declare class ContractCreateResponse {
2
+ reportBase64: string;
3
+ }
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ContractCreateResponse = void 0;
4
+ class ContractCreateResponse {
5
+ }
6
+ exports.ContractCreateResponse = ContractCreateResponse;
@@ -0,0 +1,2 @@
1
+ export * from './dtos/ContractCreateRequest';
2
+ export * from './dtos/ContractCreateResponse';
@@ -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
+ //dtos
18
+ __exportStar(require("./dtos/ContractCreateRequest"), exports);
19
+ __exportStar(require("./dtos/ContractCreateResponse"), exports);
package/bin/index.d.ts CHANGED
@@ -21,3 +21,4 @@ export * as TransactionProcessor from './transactionProcessor';
21
21
  export * as Transaction from './transaction';
22
22
  export * as ContactInfo from './contactInfo';
23
23
  export * as ProductCatalog from './productCatalog';
24
+ export * as Contract from './contract';
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.ProductCatalog = exports.ContactInfo = exports.Transaction = exports.TransactionProcessor = 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.Beneficiary = exports.Account = void 0;
26
+ exports.Contract = exports.ProductCatalog = exports.ContactInfo = exports.Transaction = exports.TransactionProcessor = 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.Beneficiary = exports.Account = void 0;
27
27
  exports.Account = __importStar(require("./account"));
28
28
  exports.Beneficiary = __importStar(require("./beneficiary"));
29
29
  exports.Address = __importStar(require("./address"));
@@ -47,3 +47,4 @@ exports.TransactionProcessor = __importStar(require("./transactionProcessor"));
47
47
  exports.Transaction = __importStar(require("./transaction"));
48
48
  exports.ContactInfo = __importStar(require("./contactInfo"));
49
49
  exports.ProductCatalog = __importStar(require("./productCatalog"));
50
+ exports.Contract = __importStar(require("./contract"));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fiado/type-kit",
3
- "version": "1.1.17",
3
+ "version": "1.1.19",
4
4
  "description": "",
5
5
  "main": "bin/index.js",
6
6
  "types": "bin/index.d.ts",
@@ -6,10 +6,6 @@ import { IsPhoneNumberFiado } from '../../card/validations/IsPhoneNumberConstrai
6
6
 
7
7
  export class AccountBeneficiaryCreateRequest {
8
8
 
9
- @IsNotEmpty()
10
- @IsString()
11
- accountId: string;
12
-
13
9
  @IsNotEmpty()
14
10
  @IsEnum(CountryId)
15
11
  countryId: CountryId;
@@ -0,0 +1,29 @@
1
+ import { IsNotEmpty, IsString } from 'class-validator';
2
+
3
+
4
+ export class ContractCreateRequest {
5
+
6
+ @IsString()
7
+ @IsNotEmpty()
8
+ id: string;
9
+
10
+ @IsString()
11
+ @IsNotEmpty()
12
+ indexName: string;
13
+
14
+ @IsString()
15
+ @IsNotEmpty()
16
+ dob: string;
17
+
18
+ @IsString()
19
+ @IsNotEmpty()
20
+ curp: string;
21
+
22
+ @IsString()
23
+ @IsNotEmpty()
24
+ createDate: string;
25
+
26
+ @IsString()
27
+ @IsNotEmpty()
28
+ signBase64: string;
29
+ }
@@ -0,0 +1,3 @@
1
+ export class ContractCreateResponse {
2
+ reportBase64: string;
3
+ }
@@ -0,0 +1,4 @@
1
+
2
+ //dtos
3
+ export * from './dtos/ContractCreateRequest';
4
+ export * from './dtos/ContractCreateResponse';
package/src/index.ts CHANGED
@@ -21,7 +21,7 @@ export * as TransactionProcessor from './transactionProcessor';
21
21
  export * as Transaction from './transaction';
22
22
  export * as ContactInfo from './contactInfo';
23
23
  export * as ProductCatalog from './productCatalog';
24
-
24
+ export * as Contract from './contract';
25
25
 
26
26
 
27
27