@fiado/type-kit 2.0.21 → 2.0.23

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.
Files changed (37) hide show
  1. package/bin/address/dtos/SuggestedAddress.d.ts +25 -0
  2. package/bin/address/dtos/SuggestedAddress.js +118 -0
  3. package/bin/address/dtos/ValidateAddressResponse.d.ts +2 -2
  4. package/bin/address/dtos/ValidateAddressResult.d.ts +1 -1
  5. package/bin/address/index.d.ts +1 -0
  6. package/bin/address/index.js +1 -0
  7. package/bin/card/validations/CardUpdateKeyConstraint.js +2 -2
  8. package/bin/card/validations/IsPhoneNumberConstraint.js +2 -2
  9. package/bin/index.js +17 -7
  10. package/bin/observations/dtos/ObservationCreateRequest.d.ts +4 -0
  11. package/bin/observations/dtos/ObservationCreateRequest.js +15 -0
  12. package/bin/observations/enums/ObservationStatus.d.ts +11 -0
  13. package/bin/observations/enums/ObservationStatus.js +15 -0
  14. package/bin/observations/index.d.ts +1 -0
  15. package/bin/observations/index.js +2 -0
  16. package/package.json +10 -10
  17. package/src/address/dtos/SuggestedAddress.ts +88 -0
  18. package/src/address/dtos/ValidateAddressResponse.ts +2 -2
  19. package/src/address/dtos/ValidateAddressResult.ts +1 -1
  20. package/src/address/index.ts +1 -0
  21. package/src/observations/dtos/ObservationCreateRequest.ts +13 -1
  22. package/src/observations/enums/ObservationStatus.ts +13 -0
  23. package/src/observations/index.ts +5 -1
  24. package/bin/bankAccount/dtos/ExternalAccountType.d.ts +0 -4
  25. package/bin/bankAccount/dtos/ExternalAccountType.js +0 -6
  26. package/bin/centralPayments/dtos/CentralPaymentsDocumentImages.d.ts +0 -6
  27. package/bin/centralPayments/dtos/CentralPaymentsDocumentImages.js +0 -6
  28. package/bin/centralPayments/dtos/CentralPaymentsDocumentUploadRequest.d.ts +0 -6
  29. package/bin/centralPayments/dtos/CentralPaymentsDocumentUploadRequest.js +0 -6
  30. package/bin/pricelist/dtos/GetPriceListDirectoriesResponse.d.ts +0 -28
  31. package/bin/pricelist/dtos/GetPriceListDirectoriesResponse.js +0 -6
  32. package/bin/services/dtos/GetMembershipListAppResponse.d.ts +0 -4
  33. package/bin/services/dtos/GetMembershipListAppResponse.js +0 -6
  34. package/bin/services/dtos/GetServiceMembershipListAResponse.d.ts +0 -4
  35. package/bin/services/dtos/GetServiceMembershipListAResponse.js +0 -6
  36. package/bin/services/enums/ServiceProviderEnum.d.ts +0 -5
  37. package/bin/services/enums/ServiceProviderEnum.js +0 -9
@@ -0,0 +1,25 @@
1
+ import { AddressProvider } from "../enums/AddressProvider";
2
+ import { Place } from "./Place";
3
+ import { CountryId } from '../../country/enums/CountryId';
4
+ export declare class SuggestedAddress {
5
+ distance?: number;
6
+ isPrincipal: boolean;
7
+ tag?: string;
8
+ tenantId?: string;
9
+ typeOfAddressId?: string;
10
+ provider?: AddressProvider;
11
+ place: Place;
12
+ additionalInformation?: string;
13
+ helpNeeded: boolean;
14
+ internalNumber?: string;
15
+ countryId: CountryId;
16
+ street?: string;
17
+ addressNumber?: string;
18
+ municipality?: string;
19
+ subMunicipality?: string;
20
+ neighborhood?: string;
21
+ subRegion?: string;
22
+ region?: string;
23
+ postalCode?: string;
24
+ country?: string;
25
+ }
@@ -0,0 +1,118 @@
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.SuggestedAddress = void 0;
13
+ const class_validator_1 = require("class-validator");
14
+ const AddressProvider_1 = require("../enums/AddressProvider");
15
+ const Place_1 = require("./Place");
16
+ const CountryId_1 = require("../../country/enums/CountryId");
17
+ class SuggestedAddress {
18
+ }
19
+ exports.SuggestedAddress = SuggestedAddress;
20
+ __decorate([
21
+ (0, class_validator_1.IsNumber)(),
22
+ (0, class_validator_1.IsOptional)(),
23
+ __metadata("design:type", Number)
24
+ ], SuggestedAddress.prototype, "distance", void 0);
25
+ __decorate([
26
+ (0, class_validator_1.IsBoolean)(),
27
+ __metadata("design:type", Boolean)
28
+ ], SuggestedAddress.prototype, "isPrincipal", void 0);
29
+ __decorate([
30
+ (0, class_validator_1.IsOptional)(),
31
+ (0, class_validator_1.IsString)(),
32
+ (0, class_validator_1.Length)(1, 100),
33
+ __metadata("design:type", String)
34
+ ], SuggestedAddress.prototype, "tag", void 0);
35
+ __decorate([
36
+ (0, class_validator_1.IsString)(),
37
+ (0, class_validator_1.Length)(1, 100),
38
+ __metadata("design:type", String)
39
+ ], SuggestedAddress.prototype, "tenantId", void 0);
40
+ __decorate([
41
+ (0, class_validator_1.IsString)(),
42
+ __metadata("design:type", String)
43
+ ], SuggestedAddress.prototype, "typeOfAddressId", void 0);
44
+ __decorate([
45
+ (0, class_validator_1.IsEnum)(AddressProvider_1.AddressProvider),
46
+ __metadata("design:type", String)
47
+ ], SuggestedAddress.prototype, "provider", void 0);
48
+ __decorate([
49
+ (0, class_validator_1.ValidateNested)(),
50
+ __metadata("design:type", Place_1.Place)
51
+ ], SuggestedAddress.prototype, "place", void 0);
52
+ __decorate([
53
+ (0, class_validator_1.IsOptional)(),
54
+ (0, class_validator_1.IsString)(),
55
+ (0, class_validator_1.Length)(1, 200),
56
+ __metadata("design:type", String)
57
+ ], SuggestedAddress.prototype, "additionalInformation", void 0);
58
+ __decorate([
59
+ (0, class_validator_1.IsBoolean)(),
60
+ __metadata("design:type", Boolean)
61
+ ], SuggestedAddress.prototype, "helpNeeded", void 0);
62
+ __decorate([
63
+ (0, class_validator_1.IsOptional)(),
64
+ (0, class_validator_1.IsString)(),
65
+ (0, class_validator_1.Length)(1, 10),
66
+ __metadata("design:type", String)
67
+ ], SuggestedAddress.prototype, "internalNumber", void 0);
68
+ __decorate([
69
+ (0, class_validator_1.IsEnum)(CountryId_1.CountryId),
70
+ __metadata("design:type", String)
71
+ ], SuggestedAddress.prototype, "countryId", void 0);
72
+ __decorate([
73
+ (0, class_validator_1.IsString)(),
74
+ (0, class_validator_1.Length)(1, 100),
75
+ __metadata("design:type", String)
76
+ ], SuggestedAddress.prototype, "street", void 0);
77
+ __decorate([
78
+ (0, class_validator_1.IsString)(),
79
+ (0, class_validator_1.Length)(1, 10),
80
+ __metadata("design:type", String)
81
+ ], SuggestedAddress.prototype, "addressNumber", void 0);
82
+ __decorate([
83
+ (0, class_validator_1.IsOptional)(),
84
+ (0, class_validator_1.IsString)(),
85
+ (0, class_validator_1.Length)(2, 60),
86
+ __metadata("design:type", String)
87
+ ], SuggestedAddress.prototype, "municipality", void 0);
88
+ __decorate([
89
+ (0, class_validator_1.IsOptional)(),
90
+ (0, class_validator_1.IsString)(),
91
+ __metadata("design:type", String)
92
+ ], SuggestedAddress.prototype, "subMunicipality", void 0);
93
+ __decorate([
94
+ (0, class_validator_1.IsOptional)(),
95
+ (0, class_validator_1.IsString)(),
96
+ (0, class_validator_1.Length)(2, 60),
97
+ __metadata("design:type", String)
98
+ ], SuggestedAddress.prototype, "neighborhood", void 0);
99
+ __decorate([
100
+ (0, class_validator_1.IsOptional)(),
101
+ (0, class_validator_1.IsString)(),
102
+ (0, class_validator_1.Length)(2, 60),
103
+ __metadata("design:type", String)
104
+ ], SuggestedAddress.prototype, "subRegion", void 0);
105
+ __decorate([
106
+ (0, class_validator_1.IsString)(),
107
+ (0, class_validator_1.Length)(5, 10),
108
+ __metadata("design:type", String)
109
+ ], SuggestedAddress.prototype, "region", void 0);
110
+ __decorate([
111
+ (0, class_validator_1.IsString)(),
112
+ (0, class_validator_1.Length)(5, 10),
113
+ __metadata("design:type", String)
114
+ ], SuggestedAddress.prototype, "postalCode", void 0);
115
+ __decorate([
116
+ (0, class_validator_1.IsEnum)(CountryId_1.CountryId),
117
+ __metadata("design:type", String)
118
+ ], SuggestedAddress.prototype, "country", void 0);
@@ -1,6 +1,6 @@
1
1
  import { ValidateAddressResult } from "./ValidateAddressResult";
2
- import { AddressBase } from "./AddressBase";
2
+ import { SuggestedAddress } from "./SuggestedAddress";
3
3
  export declare class ValidateAddressResponse {
4
4
  validationResult: ValidateAddressResult;
5
- suggestedAddresses: AddressBase[];
5
+ suggestedAddresses?: SuggestedAddress[];
6
6
  }
@@ -2,5 +2,5 @@ import { ValidateAddressStatusEnum } from "../enums/ValidateAddressStatusEnum";
2
2
  import { ValidateAddressErrorCodeEnum } from "../enums/ValidateAddressErrorCodeEnum";
3
3
  export declare class ValidateAddressResult {
4
4
  validationStatus: ValidateAddressStatusEnum;
5
- validationCodeError: ValidateAddressErrorCodeEnum;
5
+ validationCodeError?: ValidateAddressErrorCodeEnum;
6
6
  }
@@ -14,6 +14,7 @@ export * from './dtos/GetLocationResponse';
14
14
  export * from './dtos/ValidateAddressRequest';
15
15
  export * from './dtos/ValidateAddressResult';
16
16
  export * from './dtos/ValidateAddressResponse';
17
+ export * from './dtos/SuggestedAddress';
17
18
  export * from './enums/AddressStatus';
18
19
  export * from './enums/AddressProvider';
19
20
  export * from './enums/LocationTypeEnum';
@@ -31,6 +31,7 @@ __exportStar(require("./dtos/GetLocationResponse"), exports);
31
31
  __exportStar(require("./dtos/ValidateAddressRequest"), exports);
32
32
  __exportStar(require("./dtos/ValidateAddressResult"), exports);
33
33
  __exportStar(require("./dtos/ValidateAddressResponse"), exports);
34
+ __exportStar(require("./dtos/SuggestedAddress"), exports);
34
35
  //enums
35
36
  __exportStar(require("./enums/AddressStatus"), exports);
36
37
  __exportStar(require("./enums/AddressProvider"), exports);
@@ -6,7 +6,8 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
6
6
  return c > 3 && r && Object.defineProperty(target, key, r), r;
7
7
  };
8
8
  Object.defineProperty(exports, "__esModule", { value: true });
9
- exports.IsValueValid = exports.CardUpdateKeyConstraint = exports.IsReasonRequiredForCancelledStatusConstraint = void 0;
9
+ exports.CardUpdateKeyConstraint = exports.IsReasonRequiredForCancelledStatusConstraint = void 0;
10
+ exports.IsValueValid = IsValueValid;
10
11
  const class_validator_1 = require("class-validator");
11
12
  const Status_1 = require("../enums/Status");
12
13
  const UpdateKey_1 = require("../enums/UpdateKey");
@@ -70,4 +71,3 @@ function IsValueValid(validationOptions) {
70
71
  });
71
72
  };
72
73
  }
73
- exports.IsValueValid = IsValueValid;
@@ -6,7 +6,8 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
6
6
  return c > 3 && r && Object.defineProperty(target, key, r), r;
7
7
  };
8
8
  Object.defineProperty(exports, "__esModule", { value: true });
9
- exports.IsPhoneNumberFiado = exports.IsPhoneNumberConstraint = void 0;
9
+ exports.IsPhoneNumberConstraint = void 0;
10
+ exports.IsPhoneNumberFiado = IsPhoneNumberFiado;
10
11
  const class_validator_1 = require("class-validator");
11
12
  const regex_1 = require("../../helpers/constans/regex");
12
13
  let IsPhoneNumberConstraint = class IsPhoneNumberConstraint {
@@ -36,4 +37,3 @@ function IsPhoneNumberFiado(validationOptions) {
36
37
  });
37
38
  };
38
39
  }
39
- exports.IsPhoneNumberFiado = IsPhoneNumberFiado;
package/bin/index.js CHANGED
@@ -15,13 +15,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
15
15
  }) : function(o, v) {
16
16
  o["default"] = v;
17
17
  });
18
- var __importStar = (this && this.__importStar) || function (mod) {
19
- if (mod && mod.__esModule) return mod;
20
- var result = {};
21
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
- __setModuleDefault(result, mod);
23
- return result;
24
- };
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
25
35
  Object.defineProperty(exports, "__esModule", { value: true });
26
36
  exports.InvoiceCollector = exports.Collector = exports.Pricelist = exports.Company = exports.Services = exports.AccountIssuanceBusiness = exports.AppSelectionData = exports.Device = exports.Observations = exports.IssuanceBusiness = exports.Blacklist = exports.CentralPayments = exports.Helpdesk = exports.FiadoApiResponse = exports.Auth = exports.LegalDocumentsBusiness = exports.Role = exports.STPAccount = exports.RiskProfile = exports.FraudPreventionEngine = exports.BBVARst = exports.Stp = exports.BankAccount = exports.P2pContact = exports.CreditContract = 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.Activity = exports.Account = void 0;
27
37
  exports.Account = __importStar(require("./account"));
@@ -1,6 +1,10 @@
1
+ import { ObservationStatus } from '../enums/ObservationStatus';
1
2
  export declare class ObservationCreateRequest {
2
3
  tableName: string;
3
4
  relatedId: string;
4
5
  comment: string;
5
6
  tag: string;
7
+ userId: string;
8
+ status: ObservationStatus;
9
+ assignedTo?: string;
6
10
  }
@@ -11,6 +11,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.ObservationCreateRequest = void 0;
13
13
  const class_validator_1 = require("class-validator");
14
+ const ObservationStatus_1 = require("../enums/ObservationStatus");
14
15
  class ObservationCreateRequest {
15
16
  }
16
17
  exports.ObservationCreateRequest = ObservationCreateRequest;
@@ -30,3 +31,17 @@ __decorate([
30
31
  (0, class_validator_1.IsString)(),
31
32
  __metadata("design:type", String)
32
33
  ], ObservationCreateRequest.prototype, "tag", void 0);
34
+ __decorate([
35
+ (0, class_validator_1.IsString)(),
36
+ __metadata("design:type", String)
37
+ ], ObservationCreateRequest.prototype, "userId", void 0);
38
+ __decorate([
39
+ (0, class_validator_1.IsOptional)(),
40
+ (0, class_validator_1.IsEnum)(ObservationStatus_1.ObservationStatus),
41
+ __metadata("design:type", String)
42
+ ], ObservationCreateRequest.prototype, "status", void 0);
43
+ __decorate([
44
+ (0, class_validator_1.IsOptional)(),
45
+ (0, class_validator_1.IsString)(),
46
+ __metadata("design:type", String)
47
+ ], ObservationCreateRequest.prototype, "assignedTo", void 0);
@@ -0,0 +1,11 @@
1
+ export declare enum ObservationStatus {
2
+ PENDING_REVIEW = "PENDING_REVIEW",// Comentario nuevo que aún no ha sido revisado
3
+ UNDER_INVESTIGATION = "UNDER_INVESTIGATION",// Requiere atención y se está revisando
4
+ ACTION_REQUIRED = "ACTION_REQUIRED",// Se confirmó que requiere acción por parte del equipo
5
+ RESOLVED = "RESOLVED",// Ya se atendió y resolvió
6
+ NO_ACTION_NEEDED = "NO_ACTION_NEEDED",// Se revisó pero no requiere acción
7
+ ESCALATED = "ESCALATED",// Se escaló a otro equipo
8
+ DUPLICATE = "DUPLICATE",// Comentario duplicado de otro ya existente
9
+ INVALID = "INVALID",// Comentario irrelevante, erróneo o fuera de contexto
10
+ CLOSED = "CLOSED"
11
+ }
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ObservationStatus = void 0;
4
+ var ObservationStatus;
5
+ (function (ObservationStatus) {
6
+ ObservationStatus["PENDING_REVIEW"] = "PENDING_REVIEW";
7
+ ObservationStatus["UNDER_INVESTIGATION"] = "UNDER_INVESTIGATION";
8
+ ObservationStatus["ACTION_REQUIRED"] = "ACTION_REQUIRED";
9
+ ObservationStatus["RESOLVED"] = "RESOLVED";
10
+ ObservationStatus["NO_ACTION_NEEDED"] = "NO_ACTION_NEEDED";
11
+ ObservationStatus["ESCALATED"] = "ESCALATED";
12
+ ObservationStatus["DUPLICATE"] = "DUPLICATE";
13
+ ObservationStatus["INVALID"] = "INVALID";
14
+ ObservationStatus["CLOSED"] = "CLOSED"; // Cerrado manualmente (usado cuando no aplica otro estado)
15
+ })(ObservationStatus || (exports.ObservationStatus = ObservationStatus = {}));
@@ -1 +1,2 @@
1
1
  export * from './dtos/ObservationCreateRequest';
2
+ export * from './enums/ObservationStatus';
@@ -16,3 +16,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  //dtos
18
18
  __exportStar(require("./dtos/ObservationCreateRequest"), exports);
19
+ //enums
20
+ __exportStar(require("./enums/ObservationStatus"), exports);
package/package.json CHANGED
@@ -1,24 +1,24 @@
1
1
  {
2
2
  "name": "@fiado/type-kit",
3
- "version": "2.0.21",
3
+ "version": "2.0.23",
4
4
  "description": "",
5
5
  "main": "bin/index.js",
6
6
  "types": "bin/index.d.ts",
7
7
  "scripts": {
8
- "test": "jest",
9
- "build": "tsc"
8
+ "test": "jest",
9
+ "build": "tsc"
10
10
  },
11
11
  "keywords": [],
12
12
  "author": "Fiado Inc",
13
13
  "license": "ISC",
14
14
  "devDependencies": {
15
- "@types/node": "^20.11.20",
16
- "install": "^0.13.0",
17
- "npm": "^10.4.0",
18
- "typescript": "^5.3.3"
15
+ "@types/node": "^20.11.20",
16
+ "install": "^0.13.0",
17
+ "npm": "^10.4.0",
18
+ "typescript": "^5.3.3"
19
19
  },
20
20
  "dependencies": {
21
- "class-transformer": "^0.5.1",
22
- "class-validator": "^0.14.1"
21
+ "class-transformer": "^0.5.1",
22
+ "class-validator": "^0.14.1"
23
23
  }
24
- }
24
+ }
@@ -0,0 +1,88 @@
1
+
2
+
3
+ import { IsBoolean, IsEnum, IsNumber, IsOptional, IsString, Length, ValidateNested } from 'class-validator';
4
+ import { AddressProvider } from "../enums/AddressProvider";
5
+ import { Place } from "./Place";
6
+ import { CountryId } from '../../country/enums/CountryId';
7
+
8
+ export class SuggestedAddress {
9
+
10
+ @IsNumber()
11
+ @IsOptional()
12
+ distance?: number;
13
+
14
+ @IsBoolean()
15
+ isPrincipal: boolean;
16
+
17
+ @IsOptional()
18
+ @IsString()
19
+ @Length(1, 100)
20
+ tag?: string;
21
+
22
+ @IsString()
23
+ @Length(1, 100)
24
+ tenantId?: string;
25
+
26
+ @IsString()
27
+ typeOfAddressId?: string;
28
+
29
+ @IsEnum(AddressProvider)
30
+ provider?: AddressProvider;
31
+
32
+ @ValidateNested()
33
+ place: Place;
34
+
35
+ @IsOptional()
36
+ @IsString()
37
+ @Length(1, 200)
38
+ additionalInformation?: string;
39
+
40
+ @IsBoolean()
41
+ helpNeeded: boolean;
42
+
43
+ @IsOptional()
44
+ @IsString()
45
+ @Length(1, 10)
46
+ internalNumber?: string;
47
+
48
+ @IsEnum(CountryId)
49
+ countryId: CountryId;
50
+
51
+ @IsString()
52
+ @Length(1, 100)
53
+ street?: string;
54
+
55
+ @IsString()
56
+ @Length(1, 10)
57
+ addressNumber?: string;
58
+
59
+ @IsOptional()
60
+ @IsString()
61
+ @Length(2, 60)
62
+ municipality?: string;
63
+
64
+ @IsOptional()
65
+ @IsString()
66
+ subMunicipality?: string;
67
+
68
+ @IsOptional()
69
+ @IsString()
70
+ @Length(2, 60)
71
+ neighborhood?: string;
72
+
73
+ @IsOptional()
74
+ @IsString()
75
+ @Length(2, 60)
76
+ subRegion?: string;
77
+
78
+ @IsString()
79
+ @Length(5, 10)
80
+ region?: string;
81
+
82
+ @IsString()
83
+ @Length(5, 10)
84
+ postalCode?: string;
85
+
86
+ @IsEnum(CountryId)
87
+ country?: string;
88
+ }
@@ -1,7 +1,7 @@
1
1
  import { ValidateAddressResult } from "./ValidateAddressResult";
2
- import { AddressBase } from "./AddressBase"
2
+ import { SuggestedAddress } from "./SuggestedAddress"
3
3
 
4
4
  export class ValidateAddressResponse {
5
5
  validationResult: ValidateAddressResult
6
- suggestedAddresses: AddressBase[];
6
+ suggestedAddresses?: SuggestedAddress[];
7
7
  }
@@ -3,5 +3,5 @@ import { ValidateAddressErrorCodeEnum } from "../enums/ValidateAddressErrorCodeE
3
3
 
4
4
  export class ValidateAddressResult {
5
5
  validationStatus: ValidateAddressStatusEnum;
6
- validationCodeError: ValidateAddressErrorCodeEnum;
6
+ validationCodeError?: ValidateAddressErrorCodeEnum;
7
7
  }
@@ -15,6 +15,7 @@ export * from './dtos/GetLocationResponse';
15
15
  export * from './dtos/ValidateAddressRequest';
16
16
  export * from './dtos/ValidateAddressResult';
17
17
  export * from './dtos/ValidateAddressResponse';
18
+ export * from './dtos/SuggestedAddress';
18
19
 
19
20
 
20
21
  //enums
@@ -1,6 +1,7 @@
1
1
 
2
2
 
3
- import { IsString } from 'class-validator';
3
+ import { IsEnum, IsOptional, IsString } from 'class-validator';
4
+ import { ObservationStatus } from '../enums/ObservationStatus';
4
5
 
5
6
  export class ObservationCreateRequest {
6
7
 
@@ -16,4 +17,15 @@ export class ObservationCreateRequest {
16
17
  @IsString()
17
18
  tag: string;
18
19
 
20
+ @IsString()
21
+ userId: string;
22
+
23
+ @IsOptional()
24
+ @IsEnum(ObservationStatus)
25
+ status: ObservationStatus;
26
+
27
+ @IsOptional()
28
+ @IsString()
29
+ assignedTo?: string;
30
+
19
31
  }
@@ -0,0 +1,13 @@
1
+
2
+
3
+ export enum ObservationStatus {
4
+ PENDING_REVIEW = 'PENDING_REVIEW', // Comentario nuevo que aún no ha sido revisado
5
+ UNDER_INVESTIGATION = 'UNDER_INVESTIGATION', // Requiere atención y se está revisando
6
+ ACTION_REQUIRED = 'ACTION_REQUIRED', // Se confirmó que requiere acción por parte del equipo
7
+ RESOLVED = 'RESOLVED', // Ya se atendió y resolvió
8
+ NO_ACTION_NEEDED = 'NO_ACTION_NEEDED', // Se revisó pero no requiere acción
9
+ ESCALATED = 'ESCALATED', // Se escaló a otro equipo
10
+ DUPLICATE = 'DUPLICATE', // Comentario duplicado de otro ya existente
11
+ INVALID = 'INVALID', // Comentario irrelevante, erróneo o fuera de contexto
12
+ CLOSED = 'CLOSED' // Cerrado manualmente (usado cuando no aplica otro estado)
13
+ }
@@ -1,3 +1,7 @@
1
1
 
2
2
  //dtos
3
- export * from './dtos/ObservationCreateRequest';
3
+ export * from './dtos/ObservationCreateRequest';
4
+
5
+
6
+ //enums
7
+ export * from './enums/ObservationStatus';
@@ -1,4 +0,0 @@
1
- export declare class ExternalAccountType {
2
- id?: number;
3
- name?: string;
4
- }
@@ -1,6 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ExternalAccountType = void 0;
4
- class ExternalAccountType {
5
- }
6
- exports.ExternalAccountType = ExternalAccountType;
@@ -1,6 +0,0 @@
1
- import { DocumentSideEnum } from "../../identity";
2
- export declare class CentralPaymentsDocumentImages {
3
- side: DocumentSideEnum;
4
- url: string;
5
- extension: string;
6
- }
@@ -1,6 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.CentralPaymentsDocumentImages = void 0;
4
- class CentralPaymentsDocumentImages {
5
- }
6
- exports.CentralPaymentsDocumentImages = CentralPaymentsDocumentImages;
@@ -1,6 +0,0 @@
1
- import { IdentificationDocument } from "../../identity";
2
- import { CentralPaymentsDocumentImages } from "./CentralPaymentsDocumentImages";
3
- export declare class CentralPaymentsDocumentUploadRequest {
4
- documentInfo: IdentificationDocument;
5
- documentImages: CentralPaymentsDocumentImages[];
6
- }
@@ -1,6 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.CentralPaymentsDocumentUploadRequest = void 0;
4
- class CentralPaymentsDocumentUploadRequest {
5
- }
6
- exports.CentralPaymentsDocumentUploadRequest = CentralPaymentsDocumentUploadRequest;
@@ -1,28 +0,0 @@
1
- import { Company } from "../../company";
2
- import { Provider } from "../../provider";
3
- import { ServiceTypeEnum } from "../../services";
4
- import { ServiceRecurrenceEnum } from "../../services/enums/ServiceRecurrenceEnum";
5
- export declare class GetPriceListDirectoriesResponse {
6
- serviceId: string;
7
- company: Company;
8
- provider: Provider;
9
- type: ServiceTypeEnum;
10
- basePrice: number;
11
- recurrence: ServiceRecurrenceEnum;
12
- currencyId: string;
13
- fees: any;
14
- taxes: any;
15
- globalDiscounts: {
16
- discountType: string;
17
- discountValue: number;
18
- }[];
19
- directories: {
20
- directoryId: string;
21
- appliedDiscounts: {
22
- discountType: string;
23
- discountValue: number;
24
- source: string;
25
- referenceId: string;
26
- }[];
27
- }[];
28
- }
@@ -1,6 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.GetPriceListDirectoriesResponse = void 0;
4
- class GetPriceListDirectoriesResponse {
5
- }
6
- exports.GetPriceListDirectoriesResponse = GetPriceListDirectoriesResponse;
@@ -1,4 +0,0 @@
1
- export declare class GetServiceListAppResponse {
2
- items: any[];
3
- index: string | null;
4
- }
@@ -1,6 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.GetServiceListAppResponse = void 0;
4
- class GetServiceListAppResponse {
5
- }
6
- exports.GetServiceListAppResponse = GetServiceListAppResponse;
@@ -1,4 +0,0 @@
1
- export declare class GetServiceMembershipListAResponse {
2
- items: any[];
3
- index: string | null;
4
- }
@@ -1,6 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.GetServiceMembershipListAResponse = void 0;
4
- class GetServiceMembershipListAResponse {
5
- }
6
- exports.GetServiceMembershipListAResponse = GetServiceMembershipListAResponse;
@@ -1,5 +0,0 @@
1
- export declare enum ServiceProviderEnum {
2
- CP = "CP",
3
- TERN = "TERN",
4
- PAGOCONFIADO = "PAGOCONFIADO"
5
- }
@@ -1,9 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ServiceProviderEnum = void 0;
4
- var ServiceProviderEnum;
5
- (function (ServiceProviderEnum) {
6
- ServiceProviderEnum["CP"] = "CP";
7
- ServiceProviderEnum["TERN"] = "TERN";
8
- ServiceProviderEnum["PAGOCONFIADO"] = "PAGOCONFIADO";
9
- })(ServiceProviderEnum || (exports.ServiceProviderEnum = ServiceProviderEnum = {}));