@fiado/type-kit 3.515.0 → 3.517.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/group/groupOwnerFields.test.ts +32 -0
- package/_test_/unit/referral-business/groupOwnersByGroupIdsDtos.test.ts +46 -0
- package/_test_/unit/rewardsEligibility/backofficeBarrel.test.ts +16 -0
- package/_test_/unit/rewardsEligibility/campaignAndEventTypeDtos.test.ts +52 -0
- package/_test_/unit/rewardsEligibility/campaignConfigDecorators.test.ts +49 -0
- package/_test_/unit/rewardsEligibility/catalogDtos.test.ts +27 -0
- package/_test_/unit/rewardsEligibility/evaluationDtos.test.ts +53 -0
- package/_test_/unit/rewardsEligibility/events.test.ts +3 -3
- package/_test_/unit/rewardsEligibility/metricsDtos.test.ts +17 -0
- package/_test_/unit/rewardsEligibility/runDtos.test.ts +36 -0
- package/bin/group/dtos/GroupCreateRequest.d.ts +1 -0
- package/bin/group/dtos/GroupCreateRequest.js +5 -0
- package/bin/group/dtos/GroupResponse.d.ts +2 -0
- package/bin/referral-business/dtos/GroupOwnersByGroupIdsRequest.d.ts +4 -0
- package/bin/referral-business/dtos/GroupOwnersByGroupIdsRequest.js +25 -0
- package/bin/referral-business/dtos/GroupOwnersByGroupIdsResponse.d.ts +8 -0
- package/bin/referral-business/dtos/GroupOwnersByGroupIdsResponse.js +2 -0
- package/bin/referral-business/index.d.ts +2 -0
- package/bin/referral-business/index.js +2 -0
- package/bin/rewardsEligibility/constants/BackofficeLimits.d.ts +12 -0
- package/bin/rewardsEligibility/constants/BackofficeLimits.js +15 -0
- package/bin/rewardsEligibility/dtos/CampaignAlerts.js +20 -0
- package/bin/rewardsEligibility/dtos/CampaignQuota.d.ts +1 -1
- package/bin/rewardsEligibility/dtos/CampaignQuota.js +29 -0
- package/bin/rewardsEligibility/dtos/backoffice/ApproveRunRequest.d.ts +4 -0
- package/bin/rewardsEligibility/dtos/backoffice/ApproveRunRequest.js +27 -0
- package/bin/rewardsEligibility/dtos/backoffice/CampaignListResponse.d.ts +6 -0
- package/bin/rewardsEligibility/dtos/backoffice/CampaignListResponse.js +6 -0
- package/bin/rewardsEligibility/dtos/backoffice/CampaignRequest.d.ts +16 -0
- package/bin/rewardsEligibility/dtos/backoffice/CampaignRequest.js +72 -0
- package/bin/rewardsEligibility/dtos/backoffice/CampaignResponse.d.ts +23 -0
- package/bin/rewardsEligibility/dtos/backoffice/CampaignResponse.js +7 -0
- package/bin/rewardsEligibility/dtos/backoffice/CampaignStatusRequest.d.ts +5 -0
- package/bin/rewardsEligibility/dtos/backoffice/CampaignStatusRequest.js +24 -0
- package/bin/rewardsEligibility/dtos/backoffice/CampaignSummaryResponse.d.ts +28 -0
- package/bin/rewardsEligibility/dtos/backoffice/CampaignSummaryResponse.js +7 -0
- package/bin/rewardsEligibility/dtos/backoffice/CreateRunRequest.d.ts +11 -0
- package/bin/rewardsEligibility/dtos/backoffice/CreateRunRequest.js +45 -0
- package/bin/rewardsEligibility/dtos/backoffice/CreateRunResponse.d.ts +9 -0
- package/bin/rewardsEligibility/dtos/backoffice/CreateRunResponse.js +7 -0
- package/bin/rewardsEligibility/dtos/backoffice/EvaluationListResponse.d.ts +5 -0
- package/bin/rewardsEligibility/dtos/backoffice/EvaluationListResponse.js +6 -0
- package/bin/rewardsEligibility/dtos/backoffice/EvaluationRequest.d.ts +27 -0
- package/bin/rewardsEligibility/dtos/backoffice/EvaluationRequest.js +86 -0
- package/bin/rewardsEligibility/dtos/backoffice/EvaluationResponse.d.ts +26 -0
- package/bin/rewardsEligibility/dtos/backoffice/EvaluationResponse.js +6 -0
- package/bin/rewardsEligibility/dtos/backoffice/EvaluationStatusRequest.d.ts +5 -0
- package/bin/rewardsEligibility/dtos/backoffice/EvaluationStatusRequest.js +24 -0
- package/bin/rewardsEligibility/dtos/backoffice/EventTypeListResponse.d.ts +5 -0
- package/bin/rewardsEligibility/dtos/backoffice/EventTypeListResponse.js +6 -0
- package/bin/rewardsEligibility/dtos/backoffice/EventTypeRequest.d.ts +12 -0
- package/bin/rewardsEligibility/dtos/backoffice/EventTypeRequest.js +58 -0
- package/bin/rewardsEligibility/dtos/backoffice/EventTypeResponse.d.ts +12 -0
- package/bin/rewardsEligibility/dtos/backoffice/EventTypeResponse.js +6 -0
- package/bin/rewardsEligibility/dtos/backoffice/FailedConditionStatResponse.d.ts +8 -0
- package/bin/rewardsEligibility/dtos/backoffice/FailedConditionStatResponse.js +7 -0
- package/bin/rewardsEligibility/dtos/backoffice/InputTypeResponse.d.ts +6 -0
- package/bin/rewardsEligibility/dtos/backoffice/InputTypeResponse.js +7 -0
- package/bin/rewardsEligibility/dtos/backoffice/MetricsPointResponse.d.ts +14 -0
- package/bin/rewardsEligibility/dtos/backoffice/MetricsPointResponse.js +7 -0
- package/bin/rewardsEligibility/dtos/backoffice/MetricsQuery.d.ts +9 -0
- package/bin/rewardsEligibility/dtos/backoffice/MetricsQuery.js +7 -0
- package/bin/rewardsEligibility/dtos/backoffice/PopulationRunRequest.d.ts +5 -0
- package/bin/rewardsEligibility/dtos/backoffice/PopulationRunRequest.js +24 -0
- package/bin/rewardsEligibility/dtos/backoffice/PopulationSourceResponse.d.ts +11 -0
- package/bin/rewardsEligibility/dtos/backoffice/PopulationSourceResponse.js +7 -0
- package/bin/rewardsEligibility/dtos/backoffice/QuotaImpactResponse.d.ts +9 -0
- package/bin/rewardsEligibility/dtos/backoffice/QuotaImpactResponse.js +7 -0
- package/bin/rewardsEligibility/dtos/backoffice/QuotaUsageResponse.d.ts +10 -0
- package/bin/rewardsEligibility/dtos/backoffice/QuotaUsageResponse.js +7 -0
- package/bin/rewardsEligibility/dtos/backoffice/ResultTraceResponse.d.ts +34 -0
- package/bin/rewardsEligibility/dtos/backoffice/ResultTraceResponse.js +14 -0
- package/bin/rewardsEligibility/dtos/backoffice/RuleCatalogResponse.d.ts +28 -0
- package/bin/rewardsEligibility/dtos/backoffice/RuleCatalogResponse.js +13 -0
- package/bin/rewardsEligibility/dtos/backoffice/RunListResponse.d.ts +5 -0
- package/bin/rewardsEligibility/dtos/backoffice/RunListResponse.js +6 -0
- package/bin/rewardsEligibility/dtos/backoffice/RunResponse.d.ts +24 -0
- package/bin/rewardsEligibility/dtos/backoffice/RunResponse.js +7 -0
- package/bin/rewardsEligibility/dtos/backoffice/RunResultListResponse.d.ts +5 -0
- package/bin/rewardsEligibility/dtos/backoffice/RunResultListResponse.js +6 -0
- package/bin/rewardsEligibility/dtos/backoffice/RunResultResponse.d.ts +22 -0
- package/bin/rewardsEligibility/dtos/backoffice/RunResultResponse.js +7 -0
- package/bin/rewardsEligibility/dtos/backoffice/SimulateRequest.d.ts +8 -0
- package/bin/rewardsEligibility/dtos/backoffice/SimulateRequest.js +40 -0
- package/bin/rewardsEligibility/dtos/backoffice/SimulateResponse.d.ts +11 -0
- package/bin/rewardsEligibility/dtos/backoffice/SimulateResponse.js +6 -0
- package/bin/rewardsEligibility/enums/MetricsDimensionEnum.d.ts +8 -0
- package/bin/rewardsEligibility/enums/MetricsDimensionEnum.js +12 -0
- package/bin/rewardsEligibility/enums/RewardsEligibilityErrorCodeEnum.d.ts +46 -1
- package/bin/rewardsEligibility/enums/RewardsEligibilityErrorCodeEnum.js +46 -0
- package/bin/rewardsEligibility/enums/RuleValueTypeEnum.d.ts +9 -0
- package/bin/rewardsEligibility/enums/RuleValueTypeEnum.js +13 -0
- package/bin/rewardsEligibility/index.d.ts +34 -0
- package/bin/rewardsEligibility/index.js +35 -0
- package/package.json +1 -1
- package/src/group/dtos/GroupCreateRequest.ts +7 -1
- package/src/group/dtos/GroupResponse.ts +4 -0
- package/src/referral-business/dtos/GroupOwnersByGroupIdsRequest.ts +12 -0
- package/src/referral-business/dtos/GroupOwnersByGroupIdsResponse.ts +11 -0
- package/src/referral-business/index.ts +2 -0
- package/src/rewardsEligibility/constants/BackofficeLimits.ts +12 -0
- package/src/rewardsEligibility/dtos/CampaignAlerts.ts +9 -0
- package/src/rewardsEligibility/dtos/CampaignQuota.ts +13 -1
- package/src/rewardsEligibility/dtos/backoffice/ApproveRunRequest.ts +13 -0
- package/src/rewardsEligibility/dtos/backoffice/CampaignListResponse.ts +7 -0
- package/src/rewardsEligibility/dtos/backoffice/CampaignRequest.ts +53 -0
- package/src/rewardsEligibility/dtos/backoffice/CampaignResponse.ts +24 -0
- package/src/rewardsEligibility/dtos/backoffice/CampaignStatusRequest.ts +10 -0
- package/src/rewardsEligibility/dtos/backoffice/CampaignSummaryResponse.ts +26 -0
- package/src/rewardsEligibility/dtos/backoffice/CreateRunRequest.ts +30 -0
- package/src/rewardsEligibility/dtos/backoffice/CreateRunResponse.ts +10 -0
- package/src/rewardsEligibility/dtos/backoffice/EvaluationListResponse.ts +6 -0
- package/src/rewardsEligibility/dtos/backoffice/EvaluationRequest.ts +69 -0
- package/src/rewardsEligibility/dtos/backoffice/EvaluationResponse.ts +25 -0
- package/src/rewardsEligibility/dtos/backoffice/EvaluationStatusRequest.ts +10 -0
- package/src/rewardsEligibility/dtos/backoffice/EventTypeListResponse.ts +6 -0
- package/src/rewardsEligibility/dtos/backoffice/EventTypeRequest.ts +41 -0
- package/src/rewardsEligibility/dtos/backoffice/EventTypeResponse.ts +13 -0
- package/src/rewardsEligibility/dtos/backoffice/FailedConditionStatResponse.ts +8 -0
- package/src/rewardsEligibility/dtos/backoffice/InputTypeResponse.ts +7 -0
- package/src/rewardsEligibility/dtos/backoffice/MetricsPointResponse.ts +14 -0
- package/src/rewardsEligibility/dtos/backoffice/MetricsQuery.ts +10 -0
- package/src/rewardsEligibility/dtos/backoffice/PopulationRunRequest.ts +11 -0
- package/src/rewardsEligibility/dtos/backoffice/PopulationSourceResponse.ts +12 -0
- package/src/rewardsEligibility/dtos/backoffice/QuotaImpactResponse.ts +9 -0
- package/src/rewardsEligibility/dtos/backoffice/QuotaUsageResponse.ts +11 -0
- package/src/rewardsEligibility/dtos/backoffice/ResultTraceResponse.ts +34 -0
- package/src/rewardsEligibility/dtos/backoffice/RuleCatalogResponse.ts +28 -0
- package/src/rewardsEligibility/dtos/backoffice/RunListResponse.ts +6 -0
- package/src/rewardsEligibility/dtos/backoffice/RunResponse.ts +25 -0
- package/src/rewardsEligibility/dtos/backoffice/RunResultListResponse.ts +6 -0
- package/src/rewardsEligibility/dtos/backoffice/RunResultResponse.ts +23 -0
- package/src/rewardsEligibility/dtos/backoffice/SimulateRequest.ts +25 -0
- package/src/rewardsEligibility/dtos/backoffice/SimulateResponse.ts +12 -0
- package/src/rewardsEligibility/enums/MetricsDimensionEnum.ts +8 -0
- package/src/rewardsEligibility/enums/RewardsEligibilityErrorCodeEnum.ts +47 -0
- package/src/rewardsEligibility/enums/RuleValueTypeEnum.ts +9 -0
- package/src/rewardsEligibility/index.ts +36 -0
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { ApprovalModeEnum } from '../../enums/ApprovalModeEnum';
|
|
2
|
+
import { RunModeEnum } from '../../enums/RunModeEnum';
|
|
3
|
+
import { RunStatusEnum } from '../../enums/RunStatusEnum';
|
|
4
|
+
import { TriggerTypeEnum } from '../../enums/TriggerTypeEnum';
|
|
5
|
+
import { RunCounts } from '../RunCounts';
|
|
6
|
+
import { QuotaImpactResponse } from './QuotaImpactResponse';
|
|
7
|
+
|
|
8
|
+
/** Corrida para el backoffice (spec 10). */
|
|
9
|
+
export class RunResponse {
|
|
10
|
+
id: string;
|
|
11
|
+
evaluationId: string;
|
|
12
|
+
/** `version` de la evaluación CONGELADA en la corrida. */
|
|
13
|
+
evaluationVersion: number;
|
|
14
|
+
campaignId: string;
|
|
15
|
+
trigger: TriggerTypeEnum;
|
|
16
|
+
approval: ApprovalModeEnum;
|
|
17
|
+
mode: RunModeEnum;
|
|
18
|
+
status: RunStatusEnum;
|
|
19
|
+
counts: RunCounts;
|
|
20
|
+
/** Solo con `status: AWAITING_APPROVAL`: cuánto consumiría la corrida de cada cupo y cuánto queda. */
|
|
21
|
+
quotaImpact?: QuotaImpactResponse[];
|
|
22
|
+
requestedBy: string;
|
|
23
|
+
createdAt: number;
|
|
24
|
+
updatedAt: number;
|
|
25
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { DynamicFormValue } from '../../../dynamicForm/types/DynamicFormValue';
|
|
2
|
+
import { EvaluationOutcomeEnum } from '../../enums/EvaluationOutcomeEnum';
|
|
3
|
+
import { GrantRequestStatusEnum } from '../../enums/GrantRequestStatusEnum';
|
|
4
|
+
import { ResultTraceResponse } from './ResultTraceResponse';
|
|
5
|
+
|
|
6
|
+
/** Resultado por sujeto CON traza e inputs (spec 5.4). */
|
|
7
|
+
export class RunResultResponse {
|
|
8
|
+
runId: string;
|
|
9
|
+
subjectKey: string;
|
|
10
|
+
inputs: Record<string, DynamicFormValue>;
|
|
11
|
+
beneficiaryDirectoryId: string;
|
|
12
|
+
campaignId: string;
|
|
13
|
+
evaluationId: string;
|
|
14
|
+
packageId: string;
|
|
15
|
+
outcome: EvaluationOutcomeEnum;
|
|
16
|
+
trace?: ResultTraceResponse;
|
|
17
|
+
grantKey?: string;
|
|
18
|
+
grantStatus: GrantRequestStatusEnum;
|
|
19
|
+
/** Cruza con `GET /grants/{id}` de rewards. */
|
|
20
|
+
grantId?: string;
|
|
21
|
+
errorMessage?: string;
|
|
22
|
+
evaluatedAt: number;
|
|
23
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { Expose, Type } from 'class-transformer';
|
|
2
|
+
import { IsOptional, IsString, Matches, Validate, ValidateNested } from 'class-validator';
|
|
3
|
+
import { DynamicFormValue } from '../../../dynamicForm/types/DynamicFormValue';
|
|
4
|
+
import { IsDynamicFormValues } from '../../../dynamicForm/validators/IsDynamicFormValues';
|
|
5
|
+
import { ELIGIBILITY_ID_PATTERN } from '../../constants/BackofficeLimits';
|
|
6
|
+
import { EvaluationRequest } from './EvaluationRequest';
|
|
7
|
+
|
|
8
|
+
/** `POST /evaluations/simulate`: una evaluación GUARDADA (`evaluationId`) o un BORRADOR sin guardar (`evaluation`), más los inputs del sujeto. No persiste nada. Exactamente uno de los dos lo valida el lambda. */
|
|
9
|
+
export class SimulateRequest {
|
|
10
|
+
@Expose()
|
|
11
|
+
@IsOptional()
|
|
12
|
+
@IsString()
|
|
13
|
+
@Matches(ELIGIBILITY_ID_PATTERN)
|
|
14
|
+
evaluationId?: string;
|
|
15
|
+
|
|
16
|
+
@Expose()
|
|
17
|
+
@IsOptional()
|
|
18
|
+
@ValidateNested()
|
|
19
|
+
@Type(() => EvaluationRequest)
|
|
20
|
+
evaluation?: EvaluationRequest;
|
|
21
|
+
|
|
22
|
+
@Expose()
|
|
23
|
+
@Validate(IsDynamicFormValues)
|
|
24
|
+
inputs: Record<string, DynamicFormValue>;
|
|
25
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { EvaluationOutcomeEnum } from '../../enums/EvaluationOutcomeEnum';
|
|
2
|
+
import { ResultTraceResponse } from './ResultTraceResponse';
|
|
3
|
+
|
|
4
|
+
export class SimulateResponse {
|
|
5
|
+
outcome: EvaluationOutcomeEnum;
|
|
6
|
+
/** Ausente si el sujeto ni siquiera pudo evaluarse (inputs inválidos). */
|
|
7
|
+
trace?: ResultTraceResponse;
|
|
8
|
+
beneficiaryDirectoryId?: string;
|
|
9
|
+
grantKey?: string;
|
|
10
|
+
/** Explicación corta: «Ya recibió el premio para la venta s-9». */
|
|
11
|
+
note?: string;
|
|
12
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/** Dimensión de las métricas preagregadas (spec 5.7). `ALL` suma todas las campañas al consultar (no se escribe). */
|
|
2
|
+
export enum MetricsDimensionEnum {
|
|
3
|
+
CAMPAIGN = 'CAMPAIGN',
|
|
4
|
+
EVALUATION = 'EVALUATION',
|
|
5
|
+
PACKAGE = 'PACKAGE',
|
|
6
|
+
TRIGGER = 'TRIGGER',
|
|
7
|
+
ALL = 'ALL',
|
|
8
|
+
}
|
|
@@ -5,4 +5,51 @@ export enum RewardsEligibilityErrorCodeEnum {
|
|
|
5
5
|
EVENT_TYPE_NOT_FOUND = 'EVENT_TYPE_NOT_FOUND',
|
|
6
6
|
/** 404: GET /runs/{id} sin corrida. */
|
|
7
7
|
RUN_NOT_FOUND = 'RUN_NOT_FOUND',
|
|
8
|
+
|
|
9
|
+
// ── Backoffice (fase 3) ──
|
|
10
|
+
/** 400: el cuerpo no cumple el DTO (solo nombres de propiedad, nunca valores). */
|
|
11
|
+
VALIDATION_ERROR = 'VALIDATION_ERROR',
|
|
12
|
+
/** 400: `limit` fuera de rango o `cursor` que no devolvió esta API. */
|
|
13
|
+
INVALID_PAGE = 'INVALID_PAGE',
|
|
14
|
+
/** 400: un filtro de query (`outcome`, `status`, `dimension`, fechas…) no es válido. */
|
|
15
|
+
INVALID_FILTER = 'INVALID_FILTER',
|
|
16
|
+
/** 503: el índice de listado aún no existe en la tabla (pendiente de infraestructura). */
|
|
17
|
+
LIST_INDEX_NOT_AVAILABLE = 'LIST_INDEX_NOT_AVAILABLE',
|
|
18
|
+
/** 409: otra persona editó la misma fila. */
|
|
19
|
+
VERSION_CONFLICT = 'VERSION_CONFLICT',
|
|
20
|
+
/** 400: el id de la ruta no coincide con el del cuerpo. */
|
|
21
|
+
REQUEST_ID_MISMATCH = 'REQUEST_ID_MISMATCH',
|
|
22
|
+
/** 409: la transición de estado no está permitida. */
|
|
23
|
+
INVALID_STATUS_TRANSITION = 'INVALID_STATUS_TRANSITION',
|
|
24
|
+
CAMPAIGN_NOT_FOUND = 'CAMPAIGN_NOT_FOUND',
|
|
25
|
+
CAMPAIGN_ALREADY_EXISTS = 'CAMPAIGN_ALREADY_EXISTS',
|
|
26
|
+
CAMPAIGN_INVALID = 'CAMPAIGN_INVALID',
|
|
27
|
+
EVALUATION_NOT_FOUND = 'EVALUATION_NOT_FOUND',
|
|
28
|
+
EVALUATION_ALREADY_EXISTS = 'EVALUATION_ALREADY_EXISTS',
|
|
29
|
+
/** 400: la evaluación no pasa las validaciones del spec 5.1 (lista TODOS los problemas). */
|
|
30
|
+
EVALUATION_INVALID = 'EVALUATION_INVALID',
|
|
31
|
+
/** 409: la evaluación o su campaña no están en condiciones de correr (estado o vigencia). */
|
|
32
|
+
EVALUATION_NOT_RUNNABLE = 'EVALUATION_NOT_RUNNABLE',
|
|
33
|
+
EVENT_TYPE_ALREADY_EXISTS = 'EVENT_TYPE_ALREADY_EXISTS',
|
|
34
|
+
EVENT_TYPE_INVALID = 'EVENT_TYPE_INVALID',
|
|
35
|
+
/** 409: el tipo de evento lo escuchan evaluaciones ACTIVAS. */
|
|
36
|
+
EVENT_TYPE_IN_USE = 'EVENT_TYPE_IN_USE',
|
|
37
|
+
PACKAGE_NOT_FOUND = 'PACKAGE_NOT_FOUND',
|
|
38
|
+
/** 503: rewards-business no respondió al consultar un paquete. */
|
|
39
|
+
PACKAGE_LOOKUP_UNAVAILABLE = 'PACKAGE_LOOKUP_UNAVAILABLE',
|
|
40
|
+
/** 400: la evaluación no tiene disparador MANUAL. */
|
|
41
|
+
MANUAL_TRIGGER_MISSING = 'MANUAL_TRIGGER_MISSING',
|
|
42
|
+
/** 400: la corrida manual por población llega con la fase 4 (cron masivo). */
|
|
43
|
+
POPULATION_RUN_NOT_SUPPORTED = 'POPULATION_RUN_NOT_SUPPORTED',
|
|
44
|
+
/** 409: la corrida no está esperando aprobación. */
|
|
45
|
+
RUN_NOT_AWAITING_APPROVAL = 'RUN_NOT_AWAITING_APPROVAL',
|
|
46
|
+
/** 409: la corrida tiene más de un registro de reserva (aprobación masiva = fase 4). */
|
|
47
|
+
APPROVAL_RUN_TOO_LARGE = 'APPROVAL_RUN_TOO_LARGE',
|
|
48
|
+
RESULT_NOT_FOUND = 'RESULT_NOT_FOUND',
|
|
49
|
+
/** 409: solo se reintenta un sujeto en ERROR o REQUEST_FAILED de una corrida LIVE cerrada. */
|
|
50
|
+
RESULT_NOT_RETRYABLE = 'RESULT_NOT_RETRYABLE',
|
|
51
|
+
/** 400: el rango pedido excede el tope de filas de la exportación. */
|
|
52
|
+
EXPORT_TOO_LARGE = 'EXPORT_TOO_LARGE',
|
|
53
|
+
/** 503: la tabla de métricas no responde o no existe aún. */
|
|
54
|
+
METRICS_UNAVAILABLE = 'METRICS_UNAVAILABLE',
|
|
8
55
|
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/** Tipo de valor de un campo del catálogo de reglas (`GET /rule-catalog`). */
|
|
2
|
+
export enum RuleValueTypeEnum {
|
|
3
|
+
NUMBER = 'NUMBER',
|
|
4
|
+
STRING = 'STRING',
|
|
5
|
+
BOOLEAN = 'BOOLEAN',
|
|
6
|
+
DATE = 'DATE',
|
|
7
|
+
/** Lista de textos (ej. `directory.scope`). */
|
|
8
|
+
STRING_LIST = 'STRING_LIST',
|
|
9
|
+
}
|
|
@@ -38,3 +38,39 @@ export * from './dtos/CampaignAlerts';
|
|
|
38
38
|
export * from './dtos/PopulationRef';
|
|
39
39
|
export * from './dtos/EvaluationReward';
|
|
40
40
|
export * from './dtos/EvaluationTrigger';
|
|
41
|
+
|
|
42
|
+
//Backoffice (fase 3): enums, constantes y DTOs
|
|
43
|
+
export * from './enums/MetricsDimensionEnum';
|
|
44
|
+
export * from './enums/RuleValueTypeEnum';
|
|
45
|
+
export * from './constants/BackofficeLimits';
|
|
46
|
+
export * from './dtos/backoffice/CampaignRequest';
|
|
47
|
+
export * from './dtos/backoffice/CampaignStatusRequest';
|
|
48
|
+
export * from './dtos/backoffice/CampaignResponse';
|
|
49
|
+
export * from './dtos/backoffice/CampaignListResponse';
|
|
50
|
+
export * from './dtos/backoffice/QuotaUsageResponse';
|
|
51
|
+
export * from './dtos/backoffice/CampaignSummaryResponse';
|
|
52
|
+
export * from './dtos/backoffice/EventTypeRequest';
|
|
53
|
+
export * from './dtos/backoffice/EventTypeResponse';
|
|
54
|
+
export * from './dtos/backoffice/EventTypeListResponse';
|
|
55
|
+
export * from './dtos/backoffice/EvaluationRequest';
|
|
56
|
+
export * from './dtos/backoffice/EvaluationStatusRequest';
|
|
57
|
+
export * from './dtos/backoffice/EvaluationResponse';
|
|
58
|
+
export * from './dtos/backoffice/EvaluationListResponse';
|
|
59
|
+
export * from './dtos/backoffice/ResultTraceResponse';
|
|
60
|
+
export * from './dtos/backoffice/SimulateRequest';
|
|
61
|
+
export * from './dtos/backoffice/SimulateResponse';
|
|
62
|
+
export * from './dtos/backoffice/RuleCatalogResponse';
|
|
63
|
+
export * from './dtos/backoffice/PopulationSourceResponse';
|
|
64
|
+
export * from './dtos/backoffice/InputTypeResponse';
|
|
65
|
+
export * from './dtos/backoffice/CreateRunRequest';
|
|
66
|
+
export * from './dtos/backoffice/PopulationRunRequest';
|
|
67
|
+
export * from './dtos/backoffice/ApproveRunRequest';
|
|
68
|
+
export * from './dtos/backoffice/QuotaImpactResponse';
|
|
69
|
+
export * from './dtos/backoffice/RunResponse';
|
|
70
|
+
export * from './dtos/backoffice/RunListResponse';
|
|
71
|
+
export * from './dtos/backoffice/RunResultResponse';
|
|
72
|
+
export * from './dtos/backoffice/RunResultListResponse';
|
|
73
|
+
export * from './dtos/backoffice/CreateRunResponse';
|
|
74
|
+
export * from './dtos/backoffice/MetricsPointResponse';
|
|
75
|
+
export * from './dtos/backoffice/FailedConditionStatResponse';
|
|
76
|
+
export * from './dtos/backoffice/MetricsQuery';
|