@fiado/type-kit 3.323.0 → 3.325.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.
Files changed (35) hide show
  1. package/bin/helpdesk/dtos/HelpdeskCreateTicketRequest.d.ts +3 -0
  2. package/bin/helpdesk/dtos/HelpdeskCreateTicketRequest.js +6 -0
  3. package/bin/helpdesk/dtos/ZendeskInternalAlertRequest.d.ts +6 -0
  4. package/bin/helpdesk/dtos/ZendeskInternalAlertRequest.js +6 -0
  5. package/bin/helpdesk/enums/AlertClassificationEnum.d.ts +9 -0
  6. package/bin/helpdesk/enums/AlertClassificationEnum.js +13 -0
  7. package/bin/helpdesk/index.d.ts +1 -0
  8. package/bin/helpdesk/index.js +1 -0
  9. package/bin/retailCards/dtos/requests/AssignCardRequest.d.ts +6 -0
  10. package/bin/retailCards/dtos/requests/AssignCardRequest.js +30 -0
  11. package/bin/retailCards/dtos/requests/CancelCardRequest.d.ts +5 -0
  12. package/bin/retailCards/dtos/requests/CancelCardRequest.js +22 -0
  13. package/bin/retailCards/dtos/responses/RetailCardResponse.d.ts +12 -0
  14. package/bin/retailCards/dtos/responses/RetailCardResponse.js +2 -0
  15. package/bin/retailCards/enums/CardBatchStatusEnum.d.ts +17 -0
  16. package/bin/retailCards/enums/CardBatchStatusEnum.js +21 -0
  17. package/bin/retailCards/enums/CardCancelReasonEnum.d.ts +13 -0
  18. package/bin/retailCards/enums/CardCancelReasonEnum.js +17 -0
  19. package/bin/retailCards/enums/RetailCardStatusEnum.d.ts +13 -0
  20. package/bin/retailCards/enums/RetailCardStatusEnum.js +17 -0
  21. package/bin/retailCards/events/RetailCardAssignedV1.d.ts +10 -0
  22. package/bin/retailCards/events/RetailCardAssignedV1.js +2 -0
  23. package/bin/retailCards/events/RetailCardCancelledV1.d.ts +9 -0
  24. package/bin/retailCards/events/RetailCardCancelledV1.js +2 -0
  25. package/bin/retailCards/events/RetailCardReleasedV1.d.ts +7 -0
  26. package/bin/retailCards/events/RetailCardReleasedV1.js +2 -0
  27. package/bin/retailWizard/dtos/requests/CompleteSaleRequest.d.ts +9 -0
  28. package/bin/retailWizard/dtos/requests/CompleteSaleRequest.js +29 -0
  29. package/bin/retailWizard/dtos/requests/MarkPcfCardDeliveredRequest.d.ts +4 -0
  30. package/bin/retailWizard/dtos/requests/MarkPcfCardDeliveredRequest.js +23 -0
  31. package/package.json +1 -1
  32. package/src/helpdesk/dtos/HelpdeskCreateTicketRequest.ts +7 -1
  33. package/src/helpdesk/dtos/ZendeskInternalAlertRequest.ts +9 -0
  34. package/src/helpdesk/enums/AlertClassificationEnum.ts +9 -0
  35. package/src/helpdesk/index.ts +1 -0
@@ -1,3 +1,4 @@
1
+ import { AlertClassification } from "../enums/AlertClassificationEnum";
1
2
  export declare class HelpdeskCreateTicketRequest {
2
3
  subject: string;
3
4
  note: string;
@@ -12,4 +13,6 @@ export declare class HelpdeskCreateTicketRequest {
12
13
  tags?: string[];
13
14
  /** GID del grupo de Zendesk al que se asigna (p. ej. Legal). */
14
15
  groupId?: number;
16
+ /** Clasificación explícita del usuario para el asunto; si no va, zendesk-business la calcula. */
17
+ classification?: AlertClassification;
15
18
  }
@@ -11,6 +11,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.HelpdeskCreateTicketRequest = void 0;
13
13
  const class_validator_1 = require("class-validator");
14
+ const AlertClassificationEnum_1 = require("../enums/AlertClassificationEnum");
14
15
  class HelpdeskCreateTicketRequest {
15
16
  }
16
17
  exports.HelpdeskCreateTicketRequest = HelpdeskCreateTicketRequest;
@@ -62,3 +63,8 @@ __decorate([
62
63
  (0, class_validator_1.IsOptional)(),
63
64
  __metadata("design:type", Number)
64
65
  ], HelpdeskCreateTicketRequest.prototype, "groupId", void 0);
66
+ __decorate([
67
+ (0, class_validator_1.IsEnum)(AlertClassificationEnum_1.AlertClassification),
68
+ (0, class_validator_1.IsOptional)(),
69
+ __metadata("design:type", String)
70
+ ], HelpdeskCreateTicketRequest.prototype, "classification", void 0);
@@ -1,3 +1,4 @@
1
+ import { AlertClassification } from "../enums/AlertClassificationEnum";
1
2
  import { InternalAlertChannel } from "../enums/InternalAlertChannelEnum";
2
3
  /**
3
4
  * Alerta interna sobre un usuario. Se publica en la cola de alertamiento y zendesk-business
@@ -21,4 +22,9 @@ export declare class ZendeskInternalAlertRequest {
21
22
  channels: InternalAlertChannel[];
22
23
  /** Id del evento origen, para rastrear la alerta de vuelta. */
23
24
  reference?: string;
25
+ /**
26
+ * Clasificación explícita del usuario. Si viene, zendesk-business la usa tal cual en el asunto;
27
+ * si no, la calcula a partir del scope del directorio.
28
+ */
29
+ classification?: AlertClassification;
24
30
  }
@@ -11,6 +11,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.ZendeskInternalAlertRequest = void 0;
13
13
  const class_validator_1 = require("class-validator");
14
+ const AlertClassificationEnum_1 = require("../enums/AlertClassificationEnum");
14
15
  const InternalAlertChannelEnum_1 = require("../enums/InternalAlertChannelEnum");
15
16
  /**
16
17
  * Alerta interna sobre un usuario. Se publica en la cola de alertamiento y zendesk-business
@@ -43,3 +44,8 @@ __decorate([
43
44
  (0, class_validator_1.IsOptional)(),
44
45
  __metadata("design:type", String)
45
46
  ], ZendeskInternalAlertRequest.prototype, "reference", void 0);
47
+ __decorate([
48
+ (0, class_validator_1.IsEnum)(AlertClassificationEnum_1.AlertClassification),
49
+ (0, class_validator_1.IsOptional)(),
50
+ __metadata("design:type", String)
51
+ ], ZendeskInternalAlertRequest.prototype, "classification", void 0);
@@ -0,0 +1,9 @@
1
+ /** Estado del usuario en su viaje, tal como se muestra en el asunto del ticket. */
2
+ export declare enum AlertClassification {
3
+ /** Todavía no tiene cuenta abierta. */
4
+ ONBOARDING = "ONBOARDING",
5
+ /** El proveedor de KYC lo denegó. */
6
+ DENIED = "DENIED",
7
+ /** Tiene cuenta abierta. */
8
+ CLIENT = "CLIENT"
9
+ }
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AlertClassification = void 0;
4
+ /** Estado del usuario en su viaje, tal como se muestra en el asunto del ticket. */
5
+ var AlertClassification;
6
+ (function (AlertClassification) {
7
+ /** Todavía no tiene cuenta abierta. */
8
+ AlertClassification["ONBOARDING"] = "ONBOARDING";
9
+ /** El proveedor de KYC lo denegó. */
10
+ AlertClassification["DENIED"] = "DENIED";
11
+ /** Tiene cuenta abierta. */
12
+ AlertClassification["CLIENT"] = "CLIENT";
13
+ })(AlertClassification || (exports.AlertClassification = AlertClassification = {}));
@@ -2,5 +2,6 @@ export * from './dtos/HelpdeskCreateUserRequest';
2
2
  export * from './dtos/HelpdeskCreateTicketRequest';
3
3
  export * from './dtos/ZendeskInternalAlertRequest';
4
4
  export * from './enums/InternalAlertChannelEnum';
5
+ export * from './enums/AlertClassificationEnum';
5
6
  export * from './enums/ZendeskAlertKindEnum';
6
7
  export * from './interfaces/IZendeskAlertMessage';
@@ -19,5 +19,6 @@ __exportStar(require("./dtos/HelpdeskCreateTicketRequest"), exports);
19
19
  // Alertamiento interno (cola de Zendesk)
20
20
  __exportStar(require("./dtos/ZendeskInternalAlertRequest"), exports);
21
21
  __exportStar(require("./enums/InternalAlertChannelEnum"), exports);
22
+ __exportStar(require("./enums/AlertClassificationEnum"), exports);
22
23
  __exportStar(require("./enums/ZendeskAlertKindEnum"), exports);
23
24
  __exportStar(require("./interfaces/IZendeskAlertMessage"), exports);
@@ -0,0 +1,6 @@
1
+ /** Body de la asignación de una tarjeta física a un cliente. */
2
+ export declare class AssignCardRequest {
3
+ assignedToCustomerId: string;
4
+ assignedByUserId: string;
5
+ creditId?: string;
6
+ }
@@ -0,0 +1,30 @@
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.AssignCardRequest = void 0;
13
+ const class_validator_1 = require("class-validator");
14
+ /** Body de la asignación de una tarjeta física a un cliente. */
15
+ class AssignCardRequest {
16
+ }
17
+ exports.AssignCardRequest = AssignCardRequest;
18
+ __decorate([
19
+ (0, class_validator_1.IsString)(),
20
+ __metadata("design:type", String)
21
+ ], AssignCardRequest.prototype, "assignedToCustomerId", void 0);
22
+ __decorate([
23
+ (0, class_validator_1.IsString)(),
24
+ __metadata("design:type", String)
25
+ ], AssignCardRequest.prototype, "assignedByUserId", void 0);
26
+ __decorate([
27
+ (0, class_validator_1.IsOptional)(),
28
+ (0, class_validator_1.IsString)(),
29
+ __metadata("design:type", String)
30
+ ], AssignCardRequest.prototype, "creditId", void 0);
@@ -0,0 +1,5 @@
1
+ import { CardCancelReasonEnum } from '../../enums/CardCancelReasonEnum';
2
+ /** Body de la cancelación (anulación) de una tarjeta física. */
3
+ export declare class CancelCardRequest {
4
+ reason: CardCancelReasonEnum;
5
+ }
@@ -0,0 +1,22 @@
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.CancelCardRequest = void 0;
13
+ const class_validator_1 = require("class-validator");
14
+ const CardCancelReasonEnum_1 = require("../../enums/CardCancelReasonEnum");
15
+ /** Body de la cancelación (anulación) de una tarjeta física. */
16
+ class CancelCardRequest {
17
+ }
18
+ exports.CancelCardRequest = CancelCardRequest;
19
+ __decorate([
20
+ (0, class_validator_1.IsEnum)(CardCancelReasonEnum_1.CardCancelReasonEnum),
21
+ __metadata("design:type", String)
22
+ ], CancelCardRequest.prototype, "reason", void 0);
@@ -0,0 +1,12 @@
1
+ import { RetailCardStatusEnum } from '../../enums/RetailCardStatusEnum';
2
+ /** Representación de una tarjeta física hacia el cliente. */
3
+ export interface RetailCardResponse {
4
+ cardNumber: string;
5
+ retailerId: string;
6
+ batchId: string;
7
+ storeId: string;
8
+ status: RetailCardStatusEnum;
9
+ assignedToCustomerId: string | null;
10
+ assignedAt: string | null;
11
+ assignedByUserId: string | null;
12
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,17 @@
1
+ /**
2
+ * Estado de un lote de tarjetas.
3
+ * @enum {string}
4
+ *
5
+ * @property {string} RECEIVING - Transitorio, carga en curso (DEC-004/DEC-008).
6
+ * @property {string} RECEIVED - Carga completada, lote atado a una tienda (happy-path F1).
7
+ * @property {string} FAILED - Terminal, la carga del lote falló (DEC-004/DEC-008).
8
+ * @property {string} DISTRIBUTED - Reservado F1 — lote centralizado repartido a varias tiendas (TD-008).
9
+ * @property {string} CLOSED - Reservado F1 — cierre manual del lote (TD-008).
10
+ */
11
+ export declare enum CardBatchStatusEnum {
12
+ RECEIVING = "RECEIVING",
13
+ RECEIVED = "RECEIVED",
14
+ FAILED = "FAILED",
15
+ DISTRIBUTED = "DISTRIBUTED",
16
+ CLOSED = "CLOSED"
17
+ }
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CardBatchStatusEnum = void 0;
4
+ /**
5
+ * Estado de un lote de tarjetas.
6
+ * @enum {string}
7
+ *
8
+ * @property {string} RECEIVING - Transitorio, carga en curso (DEC-004/DEC-008).
9
+ * @property {string} RECEIVED - Carga completada, lote atado a una tienda (happy-path F1).
10
+ * @property {string} FAILED - Terminal, la carga del lote falló (DEC-004/DEC-008).
11
+ * @property {string} DISTRIBUTED - Reservado F1 — lote centralizado repartido a varias tiendas (TD-008).
12
+ * @property {string} CLOSED - Reservado F1 — cierre manual del lote (TD-008).
13
+ */
14
+ var CardBatchStatusEnum;
15
+ (function (CardBatchStatusEnum) {
16
+ CardBatchStatusEnum["RECEIVING"] = "RECEIVING";
17
+ CardBatchStatusEnum["RECEIVED"] = "RECEIVED";
18
+ CardBatchStatusEnum["FAILED"] = "FAILED";
19
+ CardBatchStatusEnum["DISTRIBUTED"] = "DISTRIBUTED";
20
+ CardBatchStatusEnum["CLOSED"] = "CLOSED";
21
+ })(CardBatchStatusEnum || (exports.CardBatchStatusEnum = CardBatchStatusEnum = {}));
@@ -0,0 +1,13 @@
1
+ /**
2
+ * Motivo de cancelación de una tarjeta física.
3
+ * @enum {string}
4
+ *
5
+ * @property {string} PLASTIC_DAMAGED - Plástico dañado.
6
+ * @property {string} LOST - Tarjeta perdida.
7
+ * @property {string} THEFT_REPORTED - Robo reportado.
8
+ */
9
+ export declare enum CardCancelReasonEnum {
10
+ PLASTIC_DAMAGED = "PLASTIC_DAMAGED",
11
+ LOST = "LOST",
12
+ THEFT_REPORTED = "THEFT_REPORTED"
13
+ }
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CardCancelReasonEnum = void 0;
4
+ /**
5
+ * Motivo de cancelación de una tarjeta física.
6
+ * @enum {string}
7
+ *
8
+ * @property {string} PLASTIC_DAMAGED - Plástico dañado.
9
+ * @property {string} LOST - Tarjeta perdida.
10
+ * @property {string} THEFT_REPORTED - Robo reportado.
11
+ */
12
+ var CardCancelReasonEnum;
13
+ (function (CardCancelReasonEnum) {
14
+ CardCancelReasonEnum["PLASTIC_DAMAGED"] = "PLASTIC_DAMAGED";
15
+ CardCancelReasonEnum["LOST"] = "LOST";
16
+ CardCancelReasonEnum["THEFT_REPORTED"] = "THEFT_REPORTED";
17
+ })(CardCancelReasonEnum || (exports.CardCancelReasonEnum = CardCancelReasonEnum = {}));
@@ -0,0 +1,13 @@
1
+ /**
2
+ * Estado de una tarjeta física individual.
3
+ * @enum {string}
4
+ *
5
+ * @property {string} AVAILABLE - Cargada en stock, disponible para asignar.
6
+ * @property {string} ASSIGNED - Asignada a un cliente.
7
+ * @property {string} CANCELLED - Anulada (plástico dañado, pérdida o robo). Estado terminal.
8
+ */
9
+ export declare enum RetailCardStatusEnum {
10
+ AVAILABLE = "AVAILABLE",
11
+ ASSIGNED = "ASSIGNED",
12
+ CANCELLED = "CANCELLED"
13
+ }
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.RetailCardStatusEnum = void 0;
4
+ /**
5
+ * Estado de una tarjeta física individual.
6
+ * @enum {string}
7
+ *
8
+ * @property {string} AVAILABLE - Cargada en stock, disponible para asignar.
9
+ * @property {string} ASSIGNED - Asignada a un cliente.
10
+ * @property {string} CANCELLED - Anulada (plástico dañado, pérdida o robo). Estado terminal.
11
+ */
12
+ var RetailCardStatusEnum;
13
+ (function (RetailCardStatusEnum) {
14
+ RetailCardStatusEnum["AVAILABLE"] = "AVAILABLE";
15
+ RetailCardStatusEnum["ASSIGNED"] = "ASSIGNED";
16
+ RetailCardStatusEnum["CANCELLED"] = "CANCELLED";
17
+ })(RetailCardStatusEnum || (exports.RetailCardStatusEnum = RetailCardStatusEnum = {}));
@@ -0,0 +1,10 @@
1
+ /** Emitido cuando una tarjeta se asigna a un cliente. */
2
+ export interface RetailCardAssignedV1 {
3
+ cardNumber: string;
4
+ retailerId: string;
5
+ storeId: string;
6
+ assignedToCustomerId: string;
7
+ assignedByUserId: string;
8
+ creditId?: string;
9
+ occurredAt: string;
10
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,9 @@
1
+ import { CardCancelReasonEnum } from '../enums/CardCancelReasonEnum';
2
+ /** Emitido cuando una tarjeta se cancela (anula). */
3
+ export interface RetailCardCancelledV1 {
4
+ cardNumber: string;
5
+ retailerId: string;
6
+ storeId: string;
7
+ reason: CardCancelReasonEnum;
8
+ occurredAt: string;
9
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,7 @@
1
+ /** Emitido cuando una tarjeta se libera (vuelve a AVAILABLE). */
2
+ export interface RetailCardReleasedV1 {
3
+ cardNumber: string;
4
+ retailerId: string;
5
+ storeId: string;
6
+ occurredAt: string;
7
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,9 @@
1
+ /**
2
+ * POST /wizard/sessions/:id/complete-sale — cierra la venta (saga de 2 pasos, flujo 09). Exige
3
+ * payment registrado (regla dura). Consume el IMEI del silo (SOLD), asigna la tarjeta PCF, persiste
4
+ * la Sale con `UNIQ#FOLIO` y emite el outbox `SaleCompletedV1` en la MISMA tx. Cierra el prospecto
5
+ * vinculado si lo hay. `cardNumber` = tarjeta física entregada en tienda (S7). SureKeep Fase 2 — pista Retail.
6
+ */
7
+ export declare class CompleteSaleRequest {
8
+ cardNumber?: 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.CompleteSaleRequest = void 0;
13
+ const class_transformer_1 = require("class-transformer");
14
+ const class_validator_1 = require("class-validator");
15
+ /**
16
+ * POST /wizard/sessions/:id/complete-sale — cierra la venta (saga de 2 pasos, flujo 09). Exige
17
+ * payment registrado (regla dura). Consume el IMEI del silo (SOLD), asigna la tarjeta PCF, persiste
18
+ * la Sale con `UNIQ#FOLIO` y emite el outbox `SaleCompletedV1` en la MISMA tx. Cierra el prospecto
19
+ * vinculado si lo hay. `cardNumber` = tarjeta física entregada en tienda (S7). SureKeep Fase 2 — pista Retail.
20
+ */
21
+ class CompleteSaleRequest {
22
+ }
23
+ exports.CompleteSaleRequest = CompleteSaleRequest;
24
+ __decorate([
25
+ (0, class_transformer_1.Expose)(),
26
+ (0, class_validator_1.IsOptional)(),
27
+ (0, class_validator_1.IsString)(),
28
+ __metadata("design:type", String)
29
+ ], CompleteSaleRequest.prototype, "cardNumber", void 0);
@@ -0,0 +1,4 @@
1
+ /** POST /wizard/sessions/:id/pcf-card/mark-delivered — marca la tarjeta física PCF como entregada (S7). SureKeep Fase 2 — pista Retail. */
2
+ export declare class MarkPcfCardDeliveredRequest {
3
+ cardNumber: string;
4
+ }
@@ -0,0 +1,23 @@
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.MarkPcfCardDeliveredRequest = void 0;
13
+ const class_transformer_1 = require("class-transformer");
14
+ const class_validator_1 = require("class-validator");
15
+ /** POST /wizard/sessions/:id/pcf-card/mark-delivered — marca la tarjeta física PCF como entregada (S7). SureKeep Fase 2 — pista Retail. */
16
+ class MarkPcfCardDeliveredRequest {
17
+ }
18
+ exports.MarkPcfCardDeliveredRequest = MarkPcfCardDeliveredRequest;
19
+ __decorate([
20
+ (0, class_transformer_1.Expose)(),
21
+ (0, class_validator_1.IsString)(),
22
+ __metadata("design:type", String)
23
+ ], MarkPcfCardDeliveredRequest.prototype, "cardNumber", void 0);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fiado/type-kit",
3
- "version": "3.323.0",
3
+ "version": "3.325.0",
4
4
  "description": "",
5
5
  "main": "bin/index.js",
6
6
  "types": "bin/index.d.ts",
@@ -1,4 +1,5 @@
1
- import { IsArray, IsBoolean, IsNotEmpty, IsNumber, IsOptional, IsString } from "class-validator";
1
+ import { IsArray, IsBoolean, IsEnum, IsNotEmpty, IsNumber, IsOptional, IsString } from "class-validator";
2
+ import { AlertClassification } from "../enums/AlertClassificationEnum";
2
3
 
3
4
  export class HelpdeskCreateTicketRequest {
4
5
 
@@ -43,4 +44,9 @@ export class HelpdeskCreateTicketRequest {
43
44
  @IsOptional()
44
45
  groupId?: number;
45
46
 
47
+ /** Clasificación explícita del usuario para el asunto; si no va, zendesk-business la calcula. */
48
+ @IsEnum(AlertClassification)
49
+ @IsOptional()
50
+ classification?: AlertClassification;
51
+
46
52
  }
@@ -1,4 +1,5 @@
1
1
  import { ArrayNotEmpty, IsArray, IsEnum, IsNotEmpty, IsOptional, IsString } from "class-validator";
2
+ import { AlertClassification } from "../enums/AlertClassificationEnum";
2
3
  import { InternalAlertChannel } from "../enums/InternalAlertChannelEnum";
3
4
 
4
5
  /**
@@ -36,4 +37,12 @@ export class ZendeskInternalAlertRequest {
36
37
  @IsString()
37
38
  @IsOptional()
38
39
  reference?: string;
40
+
41
+ /**
42
+ * Clasificación explícita del usuario. Si viene, zendesk-business la usa tal cual en el asunto;
43
+ * si no, la calcula a partir del scope del directorio.
44
+ */
45
+ @IsEnum(AlertClassification)
46
+ @IsOptional()
47
+ classification?: AlertClassification;
39
48
  }
@@ -0,0 +1,9 @@
1
+ /** Estado del usuario en su viaje, tal como se muestra en el asunto del ticket. */
2
+ export enum AlertClassification {
3
+ /** Todavía no tiene cuenta abierta. */
4
+ ONBOARDING = 'ONBOARDING',
5
+ /** El proveedor de KYC lo denegó. */
6
+ DENIED = 'DENIED',
7
+ /** Tiene cuenta abierta. */
8
+ CLIENT = 'CLIENT'
9
+ }
@@ -4,5 +4,6 @@ export * from './dtos/HelpdeskCreateTicketRequest';
4
4
  // Alertamiento interno (cola de Zendesk)
5
5
  export * from './dtos/ZendeskInternalAlertRequest';
6
6
  export * from './enums/InternalAlertChannelEnum';
7
+ export * from './enums/AlertClassificationEnum';
7
8
  export * from './enums/ZendeskAlertKindEnum';
8
9
  export * from './interfaces/IZendeskAlertMessage';