@fiado/type-kit 3.521.0 → 3.523.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/_test_/unit/loanCredit/regulatoryNoticeDtos.test.ts +39 -0
- package/_test_/unit/mdm/dtos/mdmDeviceContract.test.ts +2 -1
- package/_test_/unit/messageMoments/MessageMomentCatalog.test.ts +111 -0
- package/_test_/unit/messagesConnector/SendMessageRequest.test.ts +33 -0
- package/_test_/unit/messagesConnector/TemplateMessageAuthor.test.ts +41 -0
- package/_test_/unit/notificationMessages/MomentTemplateContracts.test.ts +59 -0
- package/_test_/unit/notificationMessages/NotificationQueueMessageRequest.test.ts +21 -0
- package/_test_/unit/retailWizard/prospectResume.test.ts +49 -0
- package/_test_/unit/retailWizard/storeMixCategory.test.ts +22 -0
- package/bin/index.d.ts +1 -0
- package/bin/index.js +4 -3
- package/bin/loanCredit/constants/RegulatoryCampaign.d.ts +5 -0
- package/bin/loanCredit/constants/RegulatoryCampaign.js +11 -0
- package/bin/loanCredit/dtos/requests/BackofficeSendRegulatoryNoticeRequest.d.ts +9 -0
- package/bin/loanCredit/dtos/requests/BackofficeSendRegulatoryNoticeRequest.js +38 -0
- package/bin/loanCredit/dtos/responses/RegulatoryNoticeCampaignPage.d.ts +13 -0
- package/bin/loanCredit/dtos/responses/RegulatoryNoticeCampaignPage.js +2 -0
- package/bin/loanCredit/index.d.ts +3 -0
- package/bin/loanCredit/index.js +3 -0
- package/bin/mdm/enums/MdmNoticeTypeEnum.d.ts +2 -0
- package/bin/mdm/enums/MdmNoticeTypeEnum.js +2 -0
- package/bin/messageMoments/constants/MessageMomentCatalog.d.ts +18 -0
- package/bin/messageMoments/constants/MessageMomentCatalog.js +69 -0
- package/bin/messageMoments/constants/MessageMomentVariables.d.ts +11 -0
- package/bin/messageMoments/constants/MessageMomentVariables.js +40 -0
- package/bin/messageMoments/constants/TemplatePlaceholder.d.ts +3 -0
- package/bin/messageMoments/constants/TemplatePlaceholder.js +6 -0
- package/bin/messageMoments/enums/MessageMomentBlockEnum.d.ts +11 -0
- package/bin/messageMoments/enums/MessageMomentBlockEnum.js +15 -0
- package/bin/messageMoments/enums/MessageMomentEnum.d.ts +42 -0
- package/bin/messageMoments/enums/MessageMomentEnum.js +46 -0
- package/bin/messageMoments/index.d.ts +5 -0
- package/bin/messageMoments/index.js +21 -0
- package/bin/messagesConnector/dtos/SendMessageRequest.d.ts +1 -0
- package/bin/messagesConnector/dtos/SendMessageRequest.js +7 -0
- package/bin/messagesConnector/dtos/TemplateMessageCreateRequest.d.ts +2 -0
- package/bin/messagesConnector/dtos/TemplateMessageCreateRequest.js +6 -0
- package/bin/messagesConnector/dtos/TemplateMessageUpdateRequest.d.ts +2 -0
- package/bin/messagesConnector/dtos/TemplateMessageUpdateRequest.js +6 -0
- package/bin/notificationMessages/constants/MomentTemplateLimits.d.ts +4 -0
- package/bin/notificationMessages/constants/MomentTemplateLimits.js +7 -0
- package/bin/notificationMessages/dtos/MomentTemplateListResponse.d.ts +5 -0
- package/bin/notificationMessages/dtos/MomentTemplateListResponse.js +23 -0
- package/bin/notificationMessages/dtos/MomentTemplateResponse.d.ts +15 -0
- package/bin/notificationMessages/dtos/MomentTemplateResponse.js +54 -0
- package/bin/notificationMessages/dtos/MomentTemplateUpsertRequest.d.ts +6 -0
- package/bin/notificationMessages/dtos/MomentTemplateUpsertRequest.js +39 -0
- package/bin/notificationMessages/dtos/NotificationQueueMessageRequest.d.ts +2 -0
- package/bin/notificationMessages/enums/NotificationTemplateOriginEnum.d.ts +4 -0
- package/bin/notificationMessages/enums/NotificationTemplateOriginEnum.js +8 -0
- package/bin/notificationMessages/index.d.ts +5 -0
- package/bin/notificationMessages/index.js +5 -0
- package/bin/retailWizard/dtos/responses/ActiveSessionByPhoneResponse.d.ts +9 -1
- package/bin/retailWizard/dtos/responses/BackofficeStoreDetailResponse.d.ts +3 -1
- package/bin/retailWizard/dtos/responses/ProspectResumeResponse.d.ts +7 -0
- package/bin/retailWizard/dtos/responses/ProspectResumeResponse.js +2 -0
- package/bin/retailWizard/enums/ProspectResumeModeEnum.d.ts +6 -0
- package/bin/retailWizard/enums/ProspectResumeModeEnum.js +10 -0
- package/bin/retailWizard/enums/StoreMixCategoryEnum.d.ts +9 -0
- package/bin/retailWizard/enums/StoreMixCategoryEnum.js +13 -0
- package/bin/retailWizard/enums/SystemCancelReasonEnum.d.ts +4 -0
- package/bin/retailWizard/enums/SystemCancelReasonEnum.js +8 -0
- package/bin/retailWizard/index.d.ts +4 -0
- package/bin/retailWizard/index.js +4 -0
- package/package.json +1 -1
- package/src/index.ts +1 -0
- package/src/loanCredit/constants/RegulatoryCampaign.ts +10 -0
- package/src/loanCredit/dtos/requests/BackofficeSendRegulatoryNoticeRequest.ts +24 -0
- package/src/loanCredit/dtos/responses/RegulatoryNoticeCampaignPage.ts +13 -0
- package/src/loanCredit/index.ts +3 -0
- package/src/mdm/enums/MdmNoticeTypeEnum.ts +2 -0
- package/src/messageMoments/constants/MessageMomentCatalog.ts +91 -0
- package/src/messageMoments/constants/MessageMomentVariables.ts +42 -0
- package/src/messageMoments/constants/TemplatePlaceholder.ts +3 -0
- package/src/messageMoments/enums/MessageMomentBlockEnum.ts +11 -0
- package/src/messageMoments/enums/MessageMomentEnum.ts +50 -0
- package/src/messageMoments/index.ts +5 -0
- package/src/messagesConnector/dtos/SendMessageRequest.ts +2 -0
- package/src/messagesConnector/dtos/TemplateMessageCreateRequest.ts +6 -0
- package/src/messagesConnector/dtos/TemplateMessageUpdateRequest.ts +6 -0
- package/src/notificationMessages/constants/MomentTemplateLimits.ts +5 -0
- package/src/notificationMessages/dtos/MomentTemplateListResponse.ts +9 -0
- package/src/notificationMessages/dtos/MomentTemplateResponse.ts +34 -0
- package/src/notificationMessages/dtos/MomentTemplateUpsertRequest.ts +24 -0
- package/src/notificationMessages/dtos/NotificationQueueMessageRequest.ts +3 -1
- package/src/notificationMessages/enums/NotificationTemplateOriginEnum.ts +4 -0
- package/src/notificationMessages/index.ts +6 -2
- package/src/retailWizard/dtos/responses/ActiveSessionByPhoneResponse.ts +9 -1
- package/src/retailWizard/dtos/responses/BackofficeStoreDetailResponse.ts +3 -1
- package/src/retailWizard/dtos/responses/ProspectResumeResponse.ts +8 -0
- package/src/retailWizard/enums/ProspectResumeModeEnum.ts +6 -0
- package/src/retailWizard/enums/StoreMixCategoryEnum.ts +9 -0
- package/src/retailWizard/enums/SystemCancelReasonEnum.ts +4 -0
- package/src/retailWizard/index.ts +4 -0
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.momentByMessageType = exports.momentByTemplateId = exports.MESSAGE_MOMENT_CATALOG = void 0;
|
|
4
|
+
const MessageMomentEnum_1 = require("../enums/MessageMomentEnum");
|
|
5
|
+
const MessageMomentBlockEnum_1 = require("../enums/MessageMomentBlockEnum");
|
|
6
|
+
const MessageMomentVariables_1 = require("./MessageMomentVariables");
|
|
7
|
+
/** Un momento del crédito: las variables del crédito más las que solo emite él. */
|
|
8
|
+
function creditMoment(templateId, messageType, blockId) {
|
|
9
|
+
return {
|
|
10
|
+
templateId,
|
|
11
|
+
messageType,
|
|
12
|
+
blockId,
|
|
13
|
+
alwaysVariables: [...MessageMomentVariables_1.CREDIT_MOMENT_ALWAYS_VARIABLES, ...(MessageMomentVariables_1.MOMENT_SPECIFIC_VARIABLES[messageType] ?? [])],
|
|
14
|
+
conditionalVariables: MessageMomentVariables_1.CREDIT_MOMENT_CONDITIONAL_VARIABLES,
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
const B = MessageMomentBlockEnum_1.MessageMomentBlockEnum;
|
|
18
|
+
const M = MessageMomentEnum_1.MessageMomentEnum;
|
|
19
|
+
/** Los 38 momentos EN ORDEN de recorrido del crédito. `PM-071` apunta al OTP de plataforma. */
|
|
20
|
+
exports.MESSAGE_MOMENT_CATALOG = [
|
|
21
|
+
creditMoment('PM-001', M.APPLICATION_APPROVED, B.ORIGINATION),
|
|
22
|
+
creditMoment('PM-002', M.APPLICATION_REJECTED, B.ORIGINATION),
|
|
23
|
+
creditMoment('PM-003', M.DOWN_PAYMENT_RECEIVED, B.ORIGINATION),
|
|
24
|
+
creditMoment('PM-004', M.CONTRACT_SIGNED, B.ORIGINATION),
|
|
25
|
+
creditMoment('PM-005', M.MDM_ACTIVATED, B.ORIGINATION),
|
|
26
|
+
creditMoment('PM-010', M.REMINDER_T_MINUS_3, B.REMINDERS),
|
|
27
|
+
creditMoment('PM-011', M.REMINDER_T_MINUS_2, B.REMINDERS),
|
|
28
|
+
creditMoment('PM-012', M.REMINDER_T_MINUS_1, B.REMINDERS),
|
|
29
|
+
creditMoment('PM-020', M.PAYMENT_APPLIED, B.PAYMENTS),
|
|
30
|
+
creditMoment('PM-021', M.PAYMENT_PARTIAL, B.PAYMENTS),
|
|
31
|
+
creditMoment('PM-022', M.PAYMENT_REJECTED, B.PAYMENTS),
|
|
32
|
+
creditMoment('PM-023', M.PAYMENT_EARLY, B.PAYMENTS),
|
|
33
|
+
creditMoment('PM-030', M.COLLECTION_T_PLUS_1, B.COLLECTIONS),
|
|
34
|
+
creditMoment('PM-031', M.COLLECTION_T_PLUS_3, B.COLLECTIONS),
|
|
35
|
+
creditMoment('PM-032', M.COLLECTION_T_PLUS_5, B.COLLECTIONS),
|
|
36
|
+
creditMoment('PM-033', M.COLLECTION_T_PLUS_15, B.COLLECTIONS),
|
|
37
|
+
creditMoment('PM-034', M.COLLECTION_T_PLUS_60_BUREAU, B.COLLECTIONS),
|
|
38
|
+
creditMoment('PM-040', M.MDM_LOCK_APPLIED, B.DEVICE_LOCK),
|
|
39
|
+
creditMoment('PM-041', M.MDM_UNLOCKED, B.DEVICE_LOCK),
|
|
40
|
+
creditMoment('PM-050', M.F1_RESTRUCTURE_PROPOSED, B.EXCEPTIONS),
|
|
41
|
+
creditMoment('PM-051', M.F1_RESTRUCTURE_APPROVED, B.EXCEPTIONS),
|
|
42
|
+
creditMoment('PM-052', M.F2_CANCELLATION_PROCESSED, B.EXCEPTIONS),
|
|
43
|
+
creditMoment('PM-053', M.F3_DISCOUNT_APPLIED, B.EXCEPTIONS),
|
|
44
|
+
creditMoment('PM-054', M.F4_CORRECTION_APPLIED, B.EXCEPTIONS),
|
|
45
|
+
creditMoment('PM-055', M.F5_FRAUD_CONFIRMED, B.EXCEPTIONS),
|
|
46
|
+
creditMoment('PM-056', M.PAYMENT_PROMISE_REGISTERED, B.EXCEPTIONS),
|
|
47
|
+
creditMoment('PM-057', M.PAYMENT_PROMISE_BROKEN, B.EXCEPTIONS),
|
|
48
|
+
creditMoment('PM-060', M.LAST_INSTALLMENT, B.CLOSURE),
|
|
49
|
+
creditMoment('PM-061', M.SETTLEMENT_COMPLETED, B.CLOSURE),
|
|
50
|
+
creditMoment('PM-062', M.SETTLEMENT_BUREAU_NOTICE, B.CLOSURE),
|
|
51
|
+
creditMoment('PM-063', M.REENTRY_INVITATION, B.CLOSURE),
|
|
52
|
+
creditMoment('PM-070', M.APP_WELCOME, B.SERVICE),
|
|
53
|
+
{
|
|
54
|
+
templateId: 'PM-071',
|
|
55
|
+
messageType: M.OTP_CODE,
|
|
56
|
+
blockId: B.SERVICE,
|
|
57
|
+
alwaysVariables: MessageMomentVariables_1.OTP_MOMENT_VARIABLES,
|
|
58
|
+
conditionalVariables: [],
|
|
59
|
+
},
|
|
60
|
+
creditMoment('PM-072', M.SECURITY_ALERT, B.SERVICE),
|
|
61
|
+
creditMoment('PM-073', M.PROFILE_CHANGE_CONFIRMED, B.SERVICE),
|
|
62
|
+
creditMoment('PM-074', M.MONTHLY_STATEMENT, B.SERVICE),
|
|
63
|
+
creditMoment('PM-075', M.CAT_TERMS_NOTICE, B.SERVICE),
|
|
64
|
+
creditMoment('PM-076', M.PRIVACY_ARCO_NOTICE, B.SERVICE),
|
|
65
|
+
];
|
|
66
|
+
/** La identidad por id de ficha (`PM-030`). */
|
|
67
|
+
exports.momentByTemplateId = new Map(exports.MESSAGE_MOMENT_CATALOG.map((moment) => [moment.templateId, moment]));
|
|
68
|
+
/** La identidad por messageType de la plantilla. */
|
|
69
|
+
exports.momentByMessageType = new Map(exports.MESSAGE_MOMENT_CATALOG.map((moment) => [moment.messageType, moment]));
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { MessageMomentEnum } from '../enums/MessageMomentEnum';
|
|
2
|
+
/** Variables del crédito que el emisor manda siempre con valor. */
|
|
3
|
+
export declare const CREDIT_MOMENT_ALWAYS_VARIABLES: readonly string[];
|
|
4
|
+
/** Variables que dependen del dato: viajan siempre, con `""` cuando no aplican. */
|
|
5
|
+
export declare const CREDIT_MOMENT_CONDITIONAL_VARIABLES: readonly string[];
|
|
6
|
+
/** El OTP lo arma messages-business: llena `code` y su alias posicional `var1`. */
|
|
7
|
+
export declare const OTP_MOMENT_VARIABLES: readonly string[];
|
|
8
|
+
/** Lo que el plan nuevo de una reestructura le dice al cliente. */
|
|
9
|
+
export declare const RESTRUCTURE_MOMENT_VARIABLES: readonly string[];
|
|
10
|
+
/** Variables que solo emite su momento, siempre con valor. */
|
|
11
|
+
export declare const MOMENT_SPECIFIC_VARIABLES: Readonly<Partial<Record<MessageMomentEnum, readonly string[]>>>;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MOMENT_SPECIFIC_VARIABLES = exports.RESTRUCTURE_MOMENT_VARIABLES = exports.OTP_MOMENT_VARIABLES = exports.CREDIT_MOMENT_CONDITIONAL_VARIABLES = exports.CREDIT_MOMENT_ALWAYS_VARIABLES = void 0;
|
|
4
|
+
const MessageMomentEnum_1 = require("../enums/MessageMomentEnum");
|
|
5
|
+
/** Variables del crédito que el emisor manda siempre con valor. */
|
|
6
|
+
exports.CREDIT_MOMENT_ALWAYS_VARIABLES = [
|
|
7
|
+
'cliente_nombre',
|
|
8
|
+
'credito_id',
|
|
9
|
+
'monto_credito',
|
|
10
|
+
'monto_enganche',
|
|
11
|
+
'cuota_total',
|
|
12
|
+
'saldo_actual',
|
|
13
|
+
];
|
|
14
|
+
/** Variables que dependen del dato: viajan siempre, con `""` cuando no aplican. */
|
|
15
|
+
exports.CREDIT_MOMENT_CONDITIONAL_VARIABLES = [
|
|
16
|
+
'tienda',
|
|
17
|
+
'equipo',
|
|
18
|
+
'cat',
|
|
19
|
+
'fecha_primer_venc',
|
|
20
|
+
'fecha_liquidacion',
|
|
21
|
+
'dias_atraso',
|
|
22
|
+
'cuota_n',
|
|
23
|
+
'monto',
|
|
24
|
+
'saldo_pendiente',
|
|
25
|
+
'fecha_venc',
|
|
26
|
+
'proxima_venc',
|
|
27
|
+
'folio',
|
|
28
|
+
'forma_pago',
|
|
29
|
+
];
|
|
30
|
+
/** El OTP lo arma messages-business: llena `code` y su alias posicional `var1`. */
|
|
31
|
+
exports.OTP_MOMENT_VARIABLES = ['code', 'var1'];
|
|
32
|
+
/** Lo que el plan nuevo de una reestructura le dice al cliente. */
|
|
33
|
+
exports.RESTRUCTURE_MOMENT_VARIABLES = ['plazo_nuevo', 'cuota_nueva', 'saldo_nuevo'];
|
|
34
|
+
/** Variables que solo emite su momento, siempre con valor. */
|
|
35
|
+
exports.MOMENT_SPECIFIC_VARIABLES = {
|
|
36
|
+
[MessageMomentEnum_1.MessageMomentEnum.F1_RESTRUCTURE_PROPOSED]: exports.RESTRUCTURE_MOMENT_VARIABLES,
|
|
37
|
+
[MessageMomentEnum_1.MessageMomentEnum.F1_RESTRUCTURE_APPROVED]: exports.RESTRUCTURE_MOMENT_VARIABLES,
|
|
38
|
+
[MessageMomentEnum_1.MessageMomentEnum.PROFILE_CHANGE_CONFIRMED]: ['campo_cambiado'],
|
|
39
|
+
[MessageMomentEnum_1.MessageMomentEnum.MONTHLY_STATEMENT]: ['fecha_corte'],
|
|
40
|
+
};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
/** Un placeholder doble `{{monto}}` o simple `{monto}`, igual que `applyVariables` de messages-business. La doble va primero.
|
|
2
|
+
* Es global y compartido: úsalo solo con `matchAll`/`replace`; para `.test()` o `.exec()` crea `new RegExp(TEMPLATE_PLACEHOLDER_PATTERN.source)`. */
|
|
3
|
+
export declare const TEMPLATE_PLACEHOLDER_PATTERN: RegExp;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TEMPLATE_PLACEHOLDER_PATTERN = void 0;
|
|
4
|
+
/** Un placeholder doble `{{monto}}` o simple `{monto}`, igual que `applyVariables` de messages-business. La doble va primero.
|
|
5
|
+
* Es global y compartido: úsalo solo con `matchAll`/`replace`; para `.test()` o `.exec()` crea `new RegExp(TEMPLATE_PLACEHOLDER_PATTERN.source)`. */
|
|
6
|
+
exports.TEMPLATE_PLACEHOLDER_PATTERN = /\{\{(\w+)\}\}|\{(\w+)\}/g;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/** Bloques del árbol de la pantalla; el mismo vocabulario que la key `pm-xxx.block` de la ficha. */
|
|
2
|
+
export declare enum MessageMomentBlockEnum {
|
|
3
|
+
ORIGINATION = "origination",
|
|
4
|
+
REMINDERS = "reminders",
|
|
5
|
+
PAYMENTS = "payments",
|
|
6
|
+
COLLECTIONS = "collections",
|
|
7
|
+
DEVICE_LOCK = "deviceLock",
|
|
8
|
+
EXCEPTIONS = "exceptions",
|
|
9
|
+
CLOSURE = "closure",
|
|
10
|
+
SERVICE = "service"
|
|
11
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MessageMomentBlockEnum = void 0;
|
|
4
|
+
/** Bloques del árbol de la pantalla; el mismo vocabulario que la key `pm-xxx.block` de la ficha. */
|
|
5
|
+
var MessageMomentBlockEnum;
|
|
6
|
+
(function (MessageMomentBlockEnum) {
|
|
7
|
+
MessageMomentBlockEnum["ORIGINATION"] = "origination";
|
|
8
|
+
MessageMomentBlockEnum["REMINDERS"] = "reminders";
|
|
9
|
+
MessageMomentBlockEnum["PAYMENTS"] = "payments";
|
|
10
|
+
MessageMomentBlockEnum["COLLECTIONS"] = "collections";
|
|
11
|
+
MessageMomentBlockEnum["DEVICE_LOCK"] = "deviceLock";
|
|
12
|
+
MessageMomentBlockEnum["EXCEPTIONS"] = "exceptions";
|
|
13
|
+
MessageMomentBlockEnum["CLOSURE"] = "closure";
|
|
14
|
+
MessageMomentBlockEnum["SERVICE"] = "service";
|
|
15
|
+
})(MessageMomentBlockEnum || (exports.MessageMomentBlockEnum = MessageMomentBlockEnum = {}));
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/** Los momentos de mensaje que el emisor sabe entregar. Es el messageType de la plantilla. */
|
|
2
|
+
export declare enum MessageMomentEnum {
|
|
3
|
+
OTP_CODE = "OTP_CODE",
|
|
4
|
+
ISSUED_CARD_SMS = "ISSUED_CARD_SMS",
|
|
5
|
+
APPLICATION_APPROVED = "APPLICATION_APPROVED",
|
|
6
|
+
APPLICATION_REJECTED = "APPLICATION_REJECTED",
|
|
7
|
+
DOWN_PAYMENT_RECEIVED = "DOWN_PAYMENT_RECEIVED",
|
|
8
|
+
CONTRACT_SIGNED = "CONTRACT_SIGNED",
|
|
9
|
+
MDM_ACTIVATED = "MDM_ACTIVATED",
|
|
10
|
+
REMINDER_T_MINUS_3 = "REMINDER_T_MINUS_3",
|
|
11
|
+
REMINDER_T_MINUS_2 = "REMINDER_T_MINUS_2",
|
|
12
|
+
REMINDER_T_MINUS_1 = "REMINDER_T_MINUS_1",
|
|
13
|
+
PAYMENT_APPLIED = "PAYMENT_APPLIED",
|
|
14
|
+
PAYMENT_PARTIAL = "PAYMENT_PARTIAL",
|
|
15
|
+
PAYMENT_REJECTED = "PAYMENT_REJECTED",
|
|
16
|
+
PAYMENT_EARLY = "PAYMENT_EARLY",
|
|
17
|
+
COLLECTION_T_PLUS_1 = "COLLECTION_T_PLUS_1",
|
|
18
|
+
COLLECTION_T_PLUS_3 = "COLLECTION_T_PLUS_3",
|
|
19
|
+
COLLECTION_T_PLUS_5 = "COLLECTION_T_PLUS_5",
|
|
20
|
+
COLLECTION_T_PLUS_15 = "COLLECTION_T_PLUS_15",
|
|
21
|
+
COLLECTION_T_PLUS_60_BUREAU = "COLLECTION_T_PLUS_60_BUREAU",
|
|
22
|
+
MDM_LOCK_APPLIED = "MDM_LOCK_APPLIED",
|
|
23
|
+
MDM_UNLOCKED = "MDM_UNLOCKED",
|
|
24
|
+
F1_RESTRUCTURE_PROPOSED = "F1_RESTRUCTURE_PROPOSED",
|
|
25
|
+
F1_RESTRUCTURE_APPROVED = "F1_RESTRUCTURE_APPROVED",
|
|
26
|
+
F2_CANCELLATION_PROCESSED = "F2_CANCELLATION_PROCESSED",
|
|
27
|
+
F3_DISCOUNT_APPLIED = "F3_DISCOUNT_APPLIED",
|
|
28
|
+
F4_CORRECTION_APPLIED = "F4_CORRECTION_APPLIED",
|
|
29
|
+
F5_FRAUD_CONFIRMED = "F5_FRAUD_CONFIRMED",
|
|
30
|
+
PAYMENT_PROMISE_REGISTERED = "PAYMENT_PROMISE_REGISTERED",
|
|
31
|
+
PAYMENT_PROMISE_BROKEN = "PAYMENT_PROMISE_BROKEN",
|
|
32
|
+
LAST_INSTALLMENT = "LAST_INSTALLMENT",
|
|
33
|
+
SETTLEMENT_COMPLETED = "SETTLEMENT_COMPLETED",
|
|
34
|
+
SETTLEMENT_BUREAU_NOTICE = "SETTLEMENT_BUREAU_NOTICE",
|
|
35
|
+
REENTRY_INVITATION = "REENTRY_INVITATION",
|
|
36
|
+
APP_WELCOME = "APP_WELCOME",
|
|
37
|
+
SECURITY_ALERT = "SECURITY_ALERT",
|
|
38
|
+
PROFILE_CHANGE_CONFIRMED = "PROFILE_CHANGE_CONFIRMED",
|
|
39
|
+
MONTHLY_STATEMENT = "MONTHLY_STATEMENT",
|
|
40
|
+
CAT_TERMS_NOTICE = "CAT_TERMS_NOTICE",
|
|
41
|
+
PRIVACY_ARCO_NOTICE = "PRIVACY_ARCO_NOTICE"
|
|
42
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MessageMomentEnum = void 0;
|
|
4
|
+
/** Los momentos de mensaje que el emisor sabe entregar. Es el messageType de la plantilla. */
|
|
5
|
+
var MessageMomentEnum;
|
|
6
|
+
(function (MessageMomentEnum) {
|
|
7
|
+
MessageMomentEnum["OTP_CODE"] = "OTP_CODE";
|
|
8
|
+
MessageMomentEnum["ISSUED_CARD_SMS"] = "ISSUED_CARD_SMS";
|
|
9
|
+
MessageMomentEnum["APPLICATION_APPROVED"] = "APPLICATION_APPROVED";
|
|
10
|
+
MessageMomentEnum["APPLICATION_REJECTED"] = "APPLICATION_REJECTED";
|
|
11
|
+
MessageMomentEnum["DOWN_PAYMENT_RECEIVED"] = "DOWN_PAYMENT_RECEIVED";
|
|
12
|
+
MessageMomentEnum["CONTRACT_SIGNED"] = "CONTRACT_SIGNED";
|
|
13
|
+
MessageMomentEnum["MDM_ACTIVATED"] = "MDM_ACTIVATED";
|
|
14
|
+
MessageMomentEnum["REMINDER_T_MINUS_3"] = "REMINDER_T_MINUS_3";
|
|
15
|
+
MessageMomentEnum["REMINDER_T_MINUS_2"] = "REMINDER_T_MINUS_2";
|
|
16
|
+
MessageMomentEnum["REMINDER_T_MINUS_1"] = "REMINDER_T_MINUS_1";
|
|
17
|
+
MessageMomentEnum["PAYMENT_APPLIED"] = "PAYMENT_APPLIED";
|
|
18
|
+
MessageMomentEnum["PAYMENT_PARTIAL"] = "PAYMENT_PARTIAL";
|
|
19
|
+
MessageMomentEnum["PAYMENT_REJECTED"] = "PAYMENT_REJECTED";
|
|
20
|
+
MessageMomentEnum["PAYMENT_EARLY"] = "PAYMENT_EARLY";
|
|
21
|
+
MessageMomentEnum["COLLECTION_T_PLUS_1"] = "COLLECTION_T_PLUS_1";
|
|
22
|
+
MessageMomentEnum["COLLECTION_T_PLUS_3"] = "COLLECTION_T_PLUS_3";
|
|
23
|
+
MessageMomentEnum["COLLECTION_T_PLUS_5"] = "COLLECTION_T_PLUS_5";
|
|
24
|
+
MessageMomentEnum["COLLECTION_T_PLUS_15"] = "COLLECTION_T_PLUS_15";
|
|
25
|
+
MessageMomentEnum["COLLECTION_T_PLUS_60_BUREAU"] = "COLLECTION_T_PLUS_60_BUREAU";
|
|
26
|
+
MessageMomentEnum["MDM_LOCK_APPLIED"] = "MDM_LOCK_APPLIED";
|
|
27
|
+
MessageMomentEnum["MDM_UNLOCKED"] = "MDM_UNLOCKED";
|
|
28
|
+
MessageMomentEnum["F1_RESTRUCTURE_PROPOSED"] = "F1_RESTRUCTURE_PROPOSED";
|
|
29
|
+
MessageMomentEnum["F1_RESTRUCTURE_APPROVED"] = "F1_RESTRUCTURE_APPROVED";
|
|
30
|
+
MessageMomentEnum["F2_CANCELLATION_PROCESSED"] = "F2_CANCELLATION_PROCESSED";
|
|
31
|
+
MessageMomentEnum["F3_DISCOUNT_APPLIED"] = "F3_DISCOUNT_APPLIED";
|
|
32
|
+
MessageMomentEnum["F4_CORRECTION_APPLIED"] = "F4_CORRECTION_APPLIED";
|
|
33
|
+
MessageMomentEnum["F5_FRAUD_CONFIRMED"] = "F5_FRAUD_CONFIRMED";
|
|
34
|
+
MessageMomentEnum["PAYMENT_PROMISE_REGISTERED"] = "PAYMENT_PROMISE_REGISTERED";
|
|
35
|
+
MessageMomentEnum["PAYMENT_PROMISE_BROKEN"] = "PAYMENT_PROMISE_BROKEN";
|
|
36
|
+
MessageMomentEnum["LAST_INSTALLMENT"] = "LAST_INSTALLMENT";
|
|
37
|
+
MessageMomentEnum["SETTLEMENT_COMPLETED"] = "SETTLEMENT_COMPLETED";
|
|
38
|
+
MessageMomentEnum["SETTLEMENT_BUREAU_NOTICE"] = "SETTLEMENT_BUREAU_NOTICE";
|
|
39
|
+
MessageMomentEnum["REENTRY_INVITATION"] = "REENTRY_INVITATION";
|
|
40
|
+
MessageMomentEnum["APP_WELCOME"] = "APP_WELCOME";
|
|
41
|
+
MessageMomentEnum["SECURITY_ALERT"] = "SECURITY_ALERT";
|
|
42
|
+
MessageMomentEnum["PROFILE_CHANGE_CONFIRMED"] = "PROFILE_CHANGE_CONFIRMED";
|
|
43
|
+
MessageMomentEnum["MONTHLY_STATEMENT"] = "MONTHLY_STATEMENT";
|
|
44
|
+
MessageMomentEnum["CAT_TERMS_NOTICE"] = "CAT_TERMS_NOTICE";
|
|
45
|
+
MessageMomentEnum["PRIVACY_ARCO_NOTICE"] = "PRIVACY_ARCO_NOTICE";
|
|
46
|
+
})(MessageMomentEnum || (exports.MessageMomentEnum = MessageMomentEnum = {}));
|
|
@@ -0,0 +1,21 @@
|
|
|
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
|
+
__exportStar(require("./enums/MessageMomentEnum"), exports);
|
|
18
|
+
__exportStar(require("./enums/MessageMomentBlockEnum"), exports);
|
|
19
|
+
__exportStar(require("./constants/MessageMomentVariables"), exports);
|
|
20
|
+
__exportStar(require("./constants/MessageMomentCatalog"), exports);
|
|
21
|
+
__exportStar(require("./constants/TemplatePlaceholder"), exports);
|
|
@@ -124,3 +124,10 @@ __decorate([
|
|
|
124
124
|
(0, class_validator_1.IsEnum)(OtpMessagePurposeEnum_1.OtpMessagePurposeEnum),
|
|
125
125
|
__metadata("design:type", String)
|
|
126
126
|
], SendMessageRequest.prototype, "purpose", void 0);
|
|
127
|
+
__decorate([
|
|
128
|
+
(0, class_transformer_1.Expose)(),
|
|
129
|
+
(0, class_validator_1.IsOptional)(),
|
|
130
|
+
(0, class_validator_1.IsString)(),
|
|
131
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
132
|
+
__metadata("design:type", String)
|
|
133
|
+
], SendMessageRequest.prototype, "tenantId", void 0);
|
|
@@ -20,4 +20,6 @@ export declare class TemplateMessageCreateRequest {
|
|
|
20
20
|
providerTemplateId?: string;
|
|
21
21
|
/** Que variable va en cada slot posicional de Twilio. Solo en plantillas de WhatsApp. */
|
|
22
22
|
slotVariables?: string[];
|
|
23
|
+
/** Quién hizo el cambio. Lo pone el proxy de loan-config con el operador autenticado. */
|
|
24
|
+
updatedBy?: string;
|
|
23
25
|
}
|
|
@@ -90,3 +90,9 @@ __decorate([
|
|
|
90
90
|
(0, class_validator_1.IsString)({ each: true }),
|
|
91
91
|
__metadata("design:type", Array)
|
|
92
92
|
], TemplateMessageCreateRequest.prototype, "slotVariables", void 0);
|
|
93
|
+
__decorate([
|
|
94
|
+
(0, class_transformer_1.Expose)(),
|
|
95
|
+
(0, class_validator_1.IsOptional)(),
|
|
96
|
+
(0, class_validator_1.IsString)(),
|
|
97
|
+
__metadata("design:type", String)
|
|
98
|
+
], TemplateMessageCreateRequest.prototype, "updatedBy", void 0);
|
|
@@ -17,4 +17,6 @@ export declare class TemplateMessageUpdateRequest {
|
|
|
17
17
|
providerTemplateId?: string;
|
|
18
18
|
/** Que variable va en cada slot posicional de Twilio. Solo en plantillas de WhatsApp. */
|
|
19
19
|
slotVariables?: string[];
|
|
20
|
+
/** Quién hizo el cambio. Lo pone el proxy de loan-config con el operador autenticado. */
|
|
21
|
+
updatedBy?: string;
|
|
20
22
|
}
|
|
@@ -67,3 +67,9 @@ __decorate([
|
|
|
67
67
|
(0, class_validator_1.IsString)({ each: true }),
|
|
68
68
|
__metadata("design:type", Array)
|
|
69
69
|
], TemplateMessageUpdateRequest.prototype, "slotVariables", void 0);
|
|
70
|
+
__decorate([
|
|
71
|
+
(0, class_transformer_1.Expose)(),
|
|
72
|
+
(0, class_validator_1.IsOptional)(),
|
|
73
|
+
(0, class_validator_1.IsString)(),
|
|
74
|
+
__metadata("design:type", String)
|
|
75
|
+
], TemplateMessageUpdateRequest.prototype, "updatedBy", void 0);
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MOMENT_MESSAGE_TYPE_PATTERN = exports.MOMENT_TEMPLATE_LIST_MAX = void 0;
|
|
4
|
+
/** Tope de momentos por lectura en lote: el de BatchGetItem de DynamoDB. */
|
|
5
|
+
exports.MOMENT_TEMPLATE_LIST_MAX = 100;
|
|
6
|
+
/** Forma de un messageType de momento: mayúsculas, dígitos y guion bajo. */
|
|
7
|
+
exports.MOMENT_MESSAGE_TYPE_PATTERN = /^[A-Z0-9_]+$/;
|
|
@@ -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.MomentTemplateListResponse = void 0;
|
|
13
|
+
const class_transformer_1 = require("class-transformer");
|
|
14
|
+
const MomentTemplateResponse_1 = require("./MomentTemplateResponse");
|
|
15
|
+
/** Respuesta del listado en lote: solo vienen las plantillas que existen. */
|
|
16
|
+
class MomentTemplateListResponse {
|
|
17
|
+
}
|
|
18
|
+
exports.MomentTemplateListResponse = MomentTemplateListResponse;
|
|
19
|
+
__decorate([
|
|
20
|
+
(0, class_transformer_1.Expose)(),
|
|
21
|
+
(0, class_transformer_1.Type)(() => MomentTemplateResponse_1.MomentTemplateResponse),
|
|
22
|
+
__metadata("design:type", Array)
|
|
23
|
+
], MomentTemplateListResponse.prototype, "items", void 0);
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { NotificationTemplateOriginEnum } from '../enums/NotificationTemplateOriginEnum';
|
|
2
|
+
/** Una plantilla push de momento tal como la devuelve notification-messages-business. */
|
|
3
|
+
export declare class MomentTemplateResponse {
|
|
4
|
+
messageType: string;
|
|
5
|
+
/** Id de la fila: `ES_<messageType>`. */
|
|
6
|
+
templateId: string;
|
|
7
|
+
title: string;
|
|
8
|
+
body: string;
|
|
9
|
+
templateVariables: string[];
|
|
10
|
+
/** Ausente cuando la fila existe pero es del wallet. */
|
|
11
|
+
origin?: NotificationTemplateOriginEnum;
|
|
12
|
+
updatedAt?: number;
|
|
13
|
+
createdBy?: string;
|
|
14
|
+
updatedBy?: string;
|
|
15
|
+
}
|
|
@@ -0,0 +1,54 @@
|
|
|
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.MomentTemplateResponse = void 0;
|
|
13
|
+
const class_transformer_1 = require("class-transformer");
|
|
14
|
+
const NotificationTemplateOriginEnum_1 = require("../enums/NotificationTemplateOriginEnum");
|
|
15
|
+
/** Una plantilla push de momento tal como la devuelve notification-messages-business. */
|
|
16
|
+
class MomentTemplateResponse {
|
|
17
|
+
}
|
|
18
|
+
exports.MomentTemplateResponse = MomentTemplateResponse;
|
|
19
|
+
__decorate([
|
|
20
|
+
(0, class_transformer_1.Expose)(),
|
|
21
|
+
__metadata("design:type", String)
|
|
22
|
+
], MomentTemplateResponse.prototype, "messageType", void 0);
|
|
23
|
+
__decorate([
|
|
24
|
+
(0, class_transformer_1.Expose)(),
|
|
25
|
+
__metadata("design:type", String)
|
|
26
|
+
], MomentTemplateResponse.prototype, "templateId", void 0);
|
|
27
|
+
__decorate([
|
|
28
|
+
(0, class_transformer_1.Expose)(),
|
|
29
|
+
__metadata("design:type", String)
|
|
30
|
+
], MomentTemplateResponse.prototype, "title", void 0);
|
|
31
|
+
__decorate([
|
|
32
|
+
(0, class_transformer_1.Expose)(),
|
|
33
|
+
__metadata("design:type", String)
|
|
34
|
+
], MomentTemplateResponse.prototype, "body", void 0);
|
|
35
|
+
__decorate([
|
|
36
|
+
(0, class_transformer_1.Expose)(),
|
|
37
|
+
__metadata("design:type", Array)
|
|
38
|
+
], MomentTemplateResponse.prototype, "templateVariables", void 0);
|
|
39
|
+
__decorate([
|
|
40
|
+
(0, class_transformer_1.Expose)(),
|
|
41
|
+
__metadata("design:type", String)
|
|
42
|
+
], MomentTemplateResponse.prototype, "origin", void 0);
|
|
43
|
+
__decorate([
|
|
44
|
+
(0, class_transformer_1.Expose)(),
|
|
45
|
+
__metadata("design:type", Number)
|
|
46
|
+
], MomentTemplateResponse.prototype, "updatedAt", void 0);
|
|
47
|
+
__decorate([
|
|
48
|
+
(0, class_transformer_1.Expose)(),
|
|
49
|
+
__metadata("design:type", String)
|
|
50
|
+
], MomentTemplateResponse.prototype, "createdBy", void 0);
|
|
51
|
+
__decorate([
|
|
52
|
+
(0, class_transformer_1.Expose)(),
|
|
53
|
+
__metadata("design:type", String)
|
|
54
|
+
], MomentTemplateResponse.prototype, "updatedBy", void 0);
|
|
@@ -0,0 +1,39 @@
|
|
|
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.MomentTemplateUpsertRequest = void 0;
|
|
13
|
+
const class_transformer_1 = require("class-transformer");
|
|
14
|
+
const class_validator_1 = require("class-validator");
|
|
15
|
+
const NOT_BLANK = /\S/;
|
|
16
|
+
/** Body de PUT /private/moment-templates/{messageType}: el texto de la push y quién lo escribió. */
|
|
17
|
+
class MomentTemplateUpsertRequest {
|
|
18
|
+
}
|
|
19
|
+
exports.MomentTemplateUpsertRequest = MomentTemplateUpsertRequest;
|
|
20
|
+
__decorate([
|
|
21
|
+
(0, class_transformer_1.Expose)(),
|
|
22
|
+
(0, class_validator_1.IsString)(),
|
|
23
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
24
|
+
(0, class_validator_1.Matches)(NOT_BLANK),
|
|
25
|
+
__metadata("design:type", String)
|
|
26
|
+
], MomentTemplateUpsertRequest.prototype, "title", void 0);
|
|
27
|
+
__decorate([
|
|
28
|
+
(0, class_transformer_1.Expose)(),
|
|
29
|
+
(0, class_validator_1.IsString)(),
|
|
30
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
31
|
+
(0, class_validator_1.Matches)(NOT_BLANK),
|
|
32
|
+
__metadata("design:type", String)
|
|
33
|
+
], MomentTemplateUpsertRequest.prototype, "body", void 0);
|
|
34
|
+
__decorate([
|
|
35
|
+
(0, class_transformer_1.Expose)(),
|
|
36
|
+
(0, class_validator_1.IsString)(),
|
|
37
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
38
|
+
__metadata("design:type", String)
|
|
39
|
+
], MomentTemplateUpsertRequest.prototype, "updatedBy", void 0);
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.NotificationTemplateOriginEnum = void 0;
|
|
4
|
+
/** Quién es dueño de una fila de NotificationTemplates_GT. Sin origen, la fila es del wallet. */
|
|
5
|
+
var NotificationTemplateOriginEnum;
|
|
6
|
+
(function (NotificationTemplateOriginEnum) {
|
|
7
|
+
NotificationTemplateOriginEnum["MESSAGING_MOMENT"] = "MESSAGING_MOMENT";
|
|
8
|
+
})(NotificationTemplateOriginEnum || (exports.NotificationTemplateOriginEnum = NotificationTemplateOriginEnum = {}));
|
|
@@ -2,5 +2,10 @@ export * from './dtos/NotificationQueueMessageRequest';
|
|
|
2
2
|
export * from './dtos/QueueMessageDestination';
|
|
3
3
|
export * from './dtos/QueueMessageVariableValues';
|
|
4
4
|
export * from './dtos/NotificationTemplate';
|
|
5
|
+
export * from './dtos/MomentTemplateUpsertRequest';
|
|
6
|
+
export * from './dtos/MomentTemplateResponse';
|
|
7
|
+
export * from './dtos/MomentTemplateListResponse';
|
|
8
|
+
export * from './constants/MomentTemplateLimits';
|
|
5
9
|
export * from "./enums/NotificationId";
|
|
6
10
|
export * from "./enums/NotificationType";
|
|
11
|
+
export * from './enums/NotificationTemplateOriginEnum';
|
|
@@ -18,5 +18,10 @@ __exportStar(require("./dtos/NotificationQueueMessageRequest"), exports);
|
|
|
18
18
|
__exportStar(require("./dtos/QueueMessageDestination"), exports);
|
|
19
19
|
__exportStar(require("./dtos/QueueMessageVariableValues"), exports);
|
|
20
20
|
__exportStar(require("./dtos/NotificationTemplate"), exports);
|
|
21
|
+
__exportStar(require("./dtos/MomentTemplateUpsertRequest"), exports);
|
|
22
|
+
__exportStar(require("./dtos/MomentTemplateResponse"), exports);
|
|
23
|
+
__exportStar(require("./dtos/MomentTemplateListResponse"), exports);
|
|
24
|
+
__exportStar(require("./constants/MomentTemplateLimits"), exports);
|
|
21
25
|
__exportStar(require("./enums/NotificationId"), exports);
|
|
22
26
|
__exportStar(require("./enums/NotificationType"), exports);
|
|
27
|
+
__exportStar(require("./enums/NotificationTemplateOriginEnum"), exports);
|
|
@@ -17,11 +17,19 @@ export interface ActiveSessionByPhoneResponse {
|
|
|
17
17
|
sessionId: string | null;
|
|
18
18
|
/** Paso en el que se quedo la venta. `null` cuando `found` es `false`. */
|
|
19
19
|
currentStep: WizardStepEnum | null;
|
|
20
|
-
/**
|
|
20
|
+
/** ACTIVE o una PAUSED_* de la tienda del caller. `null` cuando `found` es `false`. */
|
|
21
21
|
state: WizardStateEnum | null;
|
|
22
22
|
/**
|
|
23
23
|
* El bloqueo de la venta, para pintar la etiqueta y el «hace N dias». `null` cuando la venta va
|
|
24
24
|
* bien o cuando `found` es `false`.
|
|
25
25
|
*/
|
|
26
26
|
blocked?: WizardBlockedSummary | null;
|
|
27
|
+
/** Pantalla exacta a la que entra «Reabrir» (slug del front). `null` = entra por `resumeTargetStep`. */
|
|
28
|
+
resumeSlug?: string | null;
|
|
29
|
+
/** Paso al que entra «Reabrir» sin pantalla exacta (checkpoint del silo). */
|
|
30
|
+
resumeTargetStep?: WizardStepEnum | null;
|
|
31
|
+
/** Hasta cuándo se retoma en la pantalla exacta (ISO). `null` = no vence por inactividad. */
|
|
32
|
+
exactUntil?: string | null;
|
|
33
|
+
/** La venta movió dinero u originó crédito: siempre se retoma la misma. */
|
|
34
|
+
moneyAtStake?: boolean;
|
|
27
35
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { ProductCategoryEnum } from '../../../retailCatalog/enums/ProductCategoryEnum';
|
|
2
|
+
import type { StoreMixCategoryEnum } from '../../enums/StoreMixCategoryEnum';
|
|
2
3
|
/** Colocación de una semana de 7 días; ISO, ambos extremos incluidos. */
|
|
3
4
|
export interface StoreWeeklyPlacement {
|
|
4
5
|
from: string;
|
|
@@ -8,7 +9,8 @@ export interface StoreWeeklyPlacement {
|
|
|
8
9
|
}
|
|
9
10
|
/** Lo vendido de una categoría en la ventana. `category: null` = venta sin líneas de producto. */
|
|
10
11
|
export interface StoreCategoryMixEntry {
|
|
11
|
-
|
|
12
|
+
/** Acepta ProductCategoryEnum para no romper a quien ya lo asigna; SERVICE solo existe en StoreMixCategoryEnum. */
|
|
13
|
+
category: StoreMixCategoryEnum | ProductCategoryEnum | null;
|
|
12
14
|
units: number;
|
|
13
15
|
placedCents: number;
|
|
14
16
|
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { ProspectResumeModeEnum } from '../../enums/ProspectResumeModeEnum';
|
|
2
|
+
/** POST /prospects/{id}/resume. La pantalla de entrada sale de GET /wizard/sessions/{id} tras el OTP. */
|
|
3
|
+
export interface ProspectResumeResponse {
|
|
4
|
+
/** `null` solo con `mode = NEW`: el front arranca la venta con POST /wizard/sessions. */
|
|
5
|
+
sessionId: string | null;
|
|
6
|
+
mode: ProspectResumeModeEnum;
|
|
7
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ProspectResumeModeEnum = void 0;
|
|
4
|
+
/** Cómo entra «Reabrir». EXACT = pantalla guardada; CHECKPOINT = destino del silo; NEW = sin venta viva. */
|
|
5
|
+
var ProspectResumeModeEnum;
|
|
6
|
+
(function (ProspectResumeModeEnum) {
|
|
7
|
+
ProspectResumeModeEnum["EXACT"] = "EXACT";
|
|
8
|
+
ProspectResumeModeEnum["CHECKPOINT"] = "CHECKPOINT";
|
|
9
|
+
ProspectResumeModeEnum["NEW"] = "NEW";
|
|
10
|
+
})(ProspectResumeModeEnum || (exports.ProspectResumeModeEnum = ProspectResumeModeEnum = {}));
|