@fiado/type-kit 3.322.0 → 3.324.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.
- package/bin/helpdesk/dtos/ZendeskInternalAlertRequest.d.ts +6 -0
- package/bin/helpdesk/dtos/ZendeskInternalAlertRequest.js +6 -0
- package/bin/helpdesk/enums/AlertClassificationEnum.d.ts +9 -0
- package/bin/helpdesk/enums/AlertClassificationEnum.js +13 -0
- package/bin/helpdesk/index.d.ts +1 -0
- package/bin/helpdesk/index.js +1 -0
- package/bin/retailCards/dtos/requests/AssignCardRequest.d.ts +6 -0
- package/bin/retailCards/dtos/requests/AssignCardRequest.js +30 -0
- package/bin/retailCards/dtos/requests/CancelCardRequest.d.ts +5 -0
- package/bin/retailCards/dtos/requests/CancelCardRequest.js +22 -0
- package/bin/retailCards/dtos/responses/RetailCardResponse.d.ts +12 -0
- package/bin/retailCards/dtos/responses/RetailCardResponse.js +2 -0
- package/bin/retailCards/enums/CardBatchStatusEnum.d.ts +17 -0
- package/bin/retailCards/enums/CardBatchStatusEnum.js +21 -0
- package/bin/retailCards/enums/CardCancelReasonEnum.d.ts +13 -0
- package/bin/retailCards/enums/CardCancelReasonEnum.js +17 -0
- package/bin/retailCards/enums/RetailCardStatusEnum.d.ts +13 -0
- package/bin/retailCards/enums/RetailCardStatusEnum.js +17 -0
- package/bin/retailCards/events/RetailCardAssignedV1.d.ts +10 -0
- package/bin/retailCards/events/RetailCardAssignedV1.js +2 -0
- package/bin/retailCards/events/RetailCardCancelledV1.d.ts +9 -0
- package/bin/retailCards/events/RetailCardCancelledV1.js +2 -0
- package/bin/retailCards/events/RetailCardReleasedV1.d.ts +7 -0
- package/bin/retailCards/events/RetailCardReleasedV1.js +2 -0
- package/bin/retailWizard/dtos/requests/CompleteSaleRequest.d.ts +9 -0
- package/bin/retailWizard/dtos/requests/CompleteSaleRequest.js +29 -0
- package/bin/retailWizard/dtos/requests/MarkPcfCardDeliveredRequest.d.ts +4 -0
- package/bin/retailWizard/dtos/requests/MarkPcfCardDeliveredRequest.js +23 -0
- package/bin/retailWizard/dtos/responses/ProspectByPhoneResponse.d.ts +31 -0
- package/bin/retailWizard/dtos/responses/ProspectByPhoneResponse.js +2 -0
- package/bin/retailWizard/index.d.ts +1 -0
- package/bin/retailWizard/index.js +1 -0
- package/package.json +1 -1
- package/src/helpdesk/dtos/ZendeskInternalAlertRequest.ts +9 -0
- package/src/helpdesk/enums/AlertClassificationEnum.ts +9 -0
- package/src/helpdesk/index.ts +1 -0
- package/src/retailWizard/dtos/responses/ProspectByPhoneResponse.ts +32 -0
- package/src/retailWizard/index.ts +1 -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 = {}));
|
package/bin/helpdesk/index.d.ts
CHANGED
|
@@ -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';
|
package/bin/helpdesk/index.js
CHANGED
|
@@ -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,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,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,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,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,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,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);
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import type { PendingReasonEnum } from '../../enums/PendingReasonEnum';
|
|
2
|
+
/**
|
|
3
|
+
* GET /prospects/by-phone?phone=... — el prospecto VIGENTE de un telefono en la tienda del caller,
|
|
4
|
+
* para precargar el drawer «Guardar y salir» en vez de que el vendedor reescriba a ciegas.
|
|
5
|
+
*
|
|
6
|
+
* `found: false` es la respuesta NORMAL: la mayoria de los telefonos no tienen prospecto abierto. Un
|
|
7
|
+
* prospecto CLOSED/LOST, o de OTRA tienda (DEC-018), responden lo mismo que si no existiera.
|
|
8
|
+
*
|
|
9
|
+
* Solo los campos que el drawer rellena: el estado del prospecto (status, saleId, wizardSessionId,
|
|
10
|
+
* fechas, actores) no se publica — el contrato es donde ese limite se hace cumplir.
|
|
11
|
+
*
|
|
12
|
+
* SureKeep Fase 2 — pista Retail.
|
|
13
|
+
*/
|
|
14
|
+
export interface ProspectByPhoneResponse {
|
|
15
|
+
/** Unico campo con el que el front decide si precarga o deja el formulario en blanco. */
|
|
16
|
+
found: boolean;
|
|
17
|
+
/** Nombre capturado del cliente. `null` cuando `found` es `false` o el prospecto no lo trae. */
|
|
18
|
+
customerName: string | null;
|
|
19
|
+
/**
|
|
20
|
+
* Motivo guardado. Puede ser uno de `SYSTEM_PENDING_REASONS` (los que pone el sistema al trabarse
|
|
21
|
+
* la venta): el front tiene que poder pintarlo, o reenviarlo tal cual lo preserva. `null` cuando
|
|
22
|
+
* `found` es `false`.
|
|
23
|
+
*/
|
|
24
|
+
pendingReason: PendingReasonEnum | null;
|
|
25
|
+
/** Texto libre del motivo. `null` cuando no hay o cuando `found` es `false`. */
|
|
26
|
+
freeReason: string | null;
|
|
27
|
+
/** Agenda del proximo contacto, ISO. `null` cuando `found` es `false`. */
|
|
28
|
+
nextContactAt: string | null;
|
|
29
|
+
/** Notas del vendedor. `null` cuando no hay o cuando `found` es `false`. */
|
|
30
|
+
notes: string | null;
|
|
31
|
+
}
|
|
@@ -82,6 +82,7 @@ export * from './dtos/responses/SignatureSignResponse';
|
|
|
82
82
|
export * from './dtos/responses/RegisterDeviceResponse';
|
|
83
83
|
export * from './dtos/responses/AccountStatusResponse';
|
|
84
84
|
export * from './dtos/responses/ActiveSessionByPhoneResponse';
|
|
85
|
+
export * from './dtos/responses/ProspectByPhoneResponse';
|
|
85
86
|
export * from './dtos/responses/AppOnboardingResponse';
|
|
86
87
|
export * from './enums/SaleFinancierEnum';
|
|
87
88
|
export * from './enums/SaleExceptionTypeEnum';
|
|
@@ -105,6 +105,7 @@ __exportStar(require("./dtos/responses/SignatureSignResponse"), exports);
|
|
|
105
105
|
__exportStar(require("./dtos/responses/RegisterDeviceResponse"), exports);
|
|
106
106
|
__exportStar(require("./dtos/responses/AccountStatusResponse"), exports);
|
|
107
107
|
__exportStar(require("./dtos/responses/ActiveSessionByPhoneResponse"), exports);
|
|
108
|
+
__exportStar(require("./dtos/responses/ProspectByPhoneResponse"), exports);
|
|
108
109
|
__exportStar(require("./dtos/responses/AppOnboardingResponse"), exports);
|
|
109
110
|
// ── F3 · Backoffice VentasLuga ────────────────────────────────────────────────
|
|
110
111
|
// Enums
|
package/package.json
CHANGED
|
@@ -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
|
+
}
|
package/src/helpdesk/index.ts
CHANGED
|
@@ -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';
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import type { PendingReasonEnum } from '../../enums/PendingReasonEnum';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* GET /prospects/by-phone?phone=... — el prospecto VIGENTE de un telefono en la tienda del caller,
|
|
5
|
+
* para precargar el drawer «Guardar y salir» en vez de que el vendedor reescriba a ciegas.
|
|
6
|
+
*
|
|
7
|
+
* `found: false` es la respuesta NORMAL: la mayoria de los telefonos no tienen prospecto abierto. Un
|
|
8
|
+
* prospecto CLOSED/LOST, o de OTRA tienda (DEC-018), responden lo mismo que si no existiera.
|
|
9
|
+
*
|
|
10
|
+
* Solo los campos que el drawer rellena: el estado del prospecto (status, saleId, wizardSessionId,
|
|
11
|
+
* fechas, actores) no se publica — el contrato es donde ese limite se hace cumplir.
|
|
12
|
+
*
|
|
13
|
+
* SureKeep Fase 2 — pista Retail.
|
|
14
|
+
*/
|
|
15
|
+
export interface ProspectByPhoneResponse {
|
|
16
|
+
/** Unico campo con el que el front decide si precarga o deja el formulario en blanco. */
|
|
17
|
+
found: boolean;
|
|
18
|
+
/** Nombre capturado del cliente. `null` cuando `found` es `false` o el prospecto no lo trae. */
|
|
19
|
+
customerName: string | null;
|
|
20
|
+
/**
|
|
21
|
+
* Motivo guardado. Puede ser uno de `SYSTEM_PENDING_REASONS` (los que pone el sistema al trabarse
|
|
22
|
+
* la venta): el front tiene que poder pintarlo, o reenviarlo tal cual lo preserva. `null` cuando
|
|
23
|
+
* `found` es `false`.
|
|
24
|
+
*/
|
|
25
|
+
pendingReason: PendingReasonEnum | null;
|
|
26
|
+
/** Texto libre del motivo. `null` cuando no hay o cuando `found` es `false`. */
|
|
27
|
+
freeReason: string | null;
|
|
28
|
+
/** Agenda del proximo contacto, ISO. `null` cuando `found` es `false`. */
|
|
29
|
+
nextContactAt: string | null;
|
|
30
|
+
/** Notas del vendedor. `null` cuando no hay o cuando `found` es `false`. */
|
|
31
|
+
notes: string | null;
|
|
32
|
+
}
|
|
@@ -95,6 +95,7 @@ export * from './dtos/responses/SignatureSignResponse';
|
|
|
95
95
|
export * from './dtos/responses/RegisterDeviceResponse';
|
|
96
96
|
export * from './dtos/responses/AccountStatusResponse';
|
|
97
97
|
export * from './dtos/responses/ActiveSessionByPhoneResponse';
|
|
98
|
+
export * from './dtos/responses/ProspectByPhoneResponse';
|
|
98
99
|
export * from './dtos/responses/AppOnboardingResponse';
|
|
99
100
|
|
|
100
101
|
// ── F3 · Backoffice VentasLuga ────────────────────────────────────────────────
|