@fiado/type-kit 3.374.0 → 3.376.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,9 @@
1
+ import { RegisterCollectibleStatus } from '../enums/RegisterCollectibleStatus';
2
+ /**
3
+ * Resultado de dar de alta un cargo cobrable. El `intentId` es la referencia con la que el motor
4
+ * sigue ese cargo, y es la misma tanto si el alta es nueva como si el cargo ya estaba registrado.
5
+ */
6
+ export declare class RegisterCollectibleResponse {
7
+ status: RegisterCollectibleStatus;
8
+ intentId: string;
9
+ }
@@ -0,0 +1,29 @@
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.RegisterCollectibleResponse = void 0;
13
+ const class_validator_1 = require("class-validator");
14
+ const RegisterCollectibleStatus_1 = require("../enums/RegisterCollectibleStatus");
15
+ /**
16
+ * Resultado de dar de alta un cargo cobrable. El `intentId` es la referencia con la que el motor
17
+ * sigue ese cargo, y es la misma tanto si el alta es nueva como si el cargo ya estaba registrado.
18
+ */
19
+ class RegisterCollectibleResponse {
20
+ }
21
+ exports.RegisterCollectibleResponse = RegisterCollectibleResponse;
22
+ __decorate([
23
+ (0, class_validator_1.IsEnum)(RegisterCollectibleStatus_1.RegisterCollectibleStatus),
24
+ __metadata("design:type", String)
25
+ ], RegisterCollectibleResponse.prototype, "status", void 0);
26
+ __decorate([
27
+ (0, class_validator_1.IsString)(),
28
+ __metadata("design:type", String)
29
+ ], RegisterCollectibleResponse.prototype, "intentId", void 0);
@@ -0,0 +1,6 @@
1
+ export declare enum RegisterCollectibleStatus {
2
+ /** El cargo se indexó por primera vez y ya entra en los reintentos del motor. */
3
+ REGISTERED = "REGISTERED",
4
+ /** Ese cargo ya estaba dado de alta. Volver a registrarlo es un no-op. */
5
+ ALREADY_REGISTERED = "ALREADY_REGISTERED"
6
+ }
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.RegisterCollectibleStatus = void 0;
4
+ var RegisterCollectibleStatus;
5
+ (function (RegisterCollectibleStatus) {
6
+ /** El cargo se indexó por primera vez y ya entra en los reintentos del motor. */
7
+ RegisterCollectibleStatus["REGISTERED"] = "REGISTERED";
8
+ /** Ese cargo ya estaba dado de alta. Volver a registrarlo es un no-op. */
9
+ RegisterCollectibleStatus["ALREADY_REGISTERED"] = "ALREADY_REGISTERED";
10
+ })(RegisterCollectibleStatus || (exports.RegisterCollectibleStatus = RegisterCollectibleStatus = {}));
@@ -3,6 +3,7 @@ export * from './enums/CollectionState';
3
3
  export * from './enums/SagaStep';
4
4
  export * from './enums/CollectionResultStatus';
5
5
  export * from './enums/DeregisterChargeStatus';
6
+ export * from './enums/RegisterCollectibleStatus';
6
7
  export * from './dtos/PendingChargeDto';
7
8
  export * from './dtos/CollectRequest';
8
9
  export * from './dtos/CollectResponse';
@@ -16,6 +17,7 @@ export * from './dtos/CollectionProductConfigDto';
16
17
  export * from './dtos/UpsertProductConfigRequest';
17
18
  export * from './dtos/ApplyCollectionResultRequest';
18
19
  export * from './dtos/DeregisterChargeResponse';
20
+ export * from './dtos/RegisterCollectibleResponse';
19
21
  export * from './dtos/ResolvePendingChargesRequest';
20
22
  export * from './dtos/MoneyInEvent';
21
23
  export * from './dtos/CollectionIntentSummaryDto';
@@ -20,6 +20,7 @@ __exportStar(require("./enums/CollectionState"), exports);
20
20
  __exportStar(require("./enums/SagaStep"), exports);
21
21
  __exportStar(require("./enums/CollectionResultStatus"), exports);
22
22
  __exportStar(require("./enums/DeregisterChargeStatus"), exports);
23
+ __exportStar(require("./enums/RegisterCollectibleStatus"), exports);
23
24
  // DTOs
24
25
  __exportStar(require("./dtos/PendingChargeDto"), exports);
25
26
  __exportStar(require("./dtos/CollectRequest"), exports);
@@ -34,6 +35,7 @@ __exportStar(require("./dtos/CollectionProductConfigDto"), exports);
34
35
  __exportStar(require("./dtos/UpsertProductConfigRequest"), exports);
35
36
  __exportStar(require("./dtos/ApplyCollectionResultRequest"), exports);
36
37
  __exportStar(require("./dtos/DeregisterChargeResponse"), exports);
38
+ __exportStar(require("./dtos/RegisterCollectibleResponse"), exports);
37
39
  __exportStar(require("./dtos/ResolvePendingChargesRequest"), exports);
38
40
  __exportStar(require("./dtos/MoneyInEvent"), exports);
39
41
  // DTOs — backoffice de monitoreo
@@ -20,6 +20,13 @@ export interface InfoSelfVerifiedFields {
20
20
  verifyNameUS?: boolean;
21
21
  /** Nombre latino (`latNames` + apellidos). Es el que abre el lado rosa. */
22
22
  verifyNameLAT?: boolean;
23
- /** Domicilio de Estados Unidos. */
23
+ /** Domicilio de Estados Unidos. Se corrige TECLEÁNDOLO: reabre el paso `US_ADDRESS`. */
24
24
  verifyAddressUS?: boolean;
25
+ /**
26
+ * Domicilio de México. Se corrige SUBIENDO COMPROBANTE: reabre `PROOF_OF_ADDRESS`.
27
+ *
28
+ * Asimétrico con `verifyAddressUS` a propósito — el domicilio mexicano necesita evidencia
29
+ * documental y el estadounidense se captura a mano.
30
+ */
31
+ verifyAddressMEX?: boolean;
25
32
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fiado/type-kit",
3
- "version": "3.374.0",
3
+ "version": "3.376.0",
4
4
  "description": "",
5
5
  "main": "bin/index.js",
6
6
  "types": "bin/index.d.ts",
@@ -0,0 +1,12 @@
1
+ import { IsEnum, IsString } from 'class-validator';
2
+ import { RegisterCollectibleStatus } from '../enums/RegisterCollectibleStatus';
3
+
4
+ /**
5
+ * Resultado de dar de alta un cargo cobrable. El `intentId` es la referencia con la que el motor
6
+ * sigue ese cargo, y es la misma tanto si el alta es nueva como si el cargo ya estaba registrado.
7
+ */
8
+ export class RegisterCollectibleResponse {
9
+ @IsEnum(RegisterCollectibleStatus) status!: RegisterCollectibleStatus;
10
+
11
+ @IsString() intentId!: string;
12
+ }
@@ -0,0 +1,6 @@
1
+ export enum RegisterCollectibleStatus {
2
+ /** El cargo se indexó por primera vez y ya entra en los reintentos del motor. */
3
+ REGISTERED = 'REGISTERED',
4
+ /** Ese cargo ya estaba dado de alta. Volver a registrarlo es un no-op. */
5
+ ALREADY_REGISTERED = 'ALREADY_REGISTERED',
6
+ }
@@ -4,6 +4,7 @@ export * from './enums/CollectionState';
4
4
  export * from './enums/SagaStep';
5
5
  export * from './enums/CollectionResultStatus';
6
6
  export * from './enums/DeregisterChargeStatus';
7
+ export * from './enums/RegisterCollectibleStatus';
7
8
 
8
9
  // DTOs
9
10
  export * from './dtos/PendingChargeDto';
@@ -19,6 +20,7 @@ export * from './dtos/CollectionProductConfigDto';
19
20
  export * from './dtos/UpsertProductConfigRequest';
20
21
  export * from './dtos/ApplyCollectionResultRequest';
21
22
  export * from './dtos/DeregisterChargeResponse';
23
+ export * from './dtos/RegisterCollectibleResponse';
22
24
  export * from './dtos/ResolvePendingChargesRequest';
23
25
  export * from './dtos/MoneyInEvent';
24
26
 
@@ -20,6 +20,13 @@ export interface InfoSelfVerifiedFields {
20
20
  verifyNameUS?: boolean;
21
21
  /** Nombre latino (`latNames` + apellidos). Es el que abre el lado rosa. */
22
22
  verifyNameLAT?: boolean;
23
- /** Domicilio de Estados Unidos. */
23
+ /** Domicilio de Estados Unidos. Se corrige TECLEÁNDOLO: reabre el paso `US_ADDRESS`. */
24
24
  verifyAddressUS?: boolean;
25
+ /**
26
+ * Domicilio de México. Se corrige SUBIENDO COMPROBANTE: reabre `PROOF_OF_ADDRESS`.
27
+ *
28
+ * Asimétrico con `verifyAddressUS` a propósito — el domicilio mexicano necesita evidencia
29
+ * documental y el estadounidense se captura a mano.
30
+ */
31
+ verifyAddressMEX?: boolean;
25
32
  }