@fiado/type-kit 3.529.0 → 3.531.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/rewardsEligibility/backofficeBarrel.test.ts +11 -1
- package/_test_/unit/rewardsEligibility/catalogDtos.test.ts +1 -7
- package/_test_/unit/rewardsEligibility/evaluationDtos.test.ts +7 -0
- package/_test_/unit/rewardsEligibility/runDtos.test.ts +2 -2
- package/_test_/unit/rewardsEligibility/segmentBackofficeDtos.test.ts +29 -0
- package/_test_/unit/rewardsEligibility/segmentDefinitionDto.test.ts +46 -0
- package/_test_/unit/rewardsEligibility/segmentEnums.test.ts +43 -0
- package/_test_/unit/rewardsEligibility/segmentMessagesAndRunDtos.test.ts +52 -0
- package/bin/rewardsEligibility/constants/BackofficeLimits.d.ts +2 -0
- package/bin/rewardsEligibility/constants/BackofficeLimits.js +3 -1
- package/bin/rewardsEligibility/constants/SegmentLimits.d.ts +5 -0
- package/bin/rewardsEligibility/constants/SegmentLimits.js +8 -0
- package/bin/rewardsEligibility/dtos/EvaluationTrigger.d.ts +0 -3
- package/bin/rewardsEligibility/dtos/backoffice/CreateRunRequest.js +4 -2
- package/bin/rewardsEligibility/dtos/backoffice/EvaluationRequest.d.ts +4 -0
- package/bin/rewardsEligibility/dtos/backoffice/EvaluationRequest.js +14 -0
- package/bin/rewardsEligibility/dtos/backoffice/EvaluationResponse.d.ts +2 -0
- package/bin/rewardsEligibility/dtos/backoffice/PopulationRunRequest.d.ts +1 -3
- package/bin/rewardsEligibility/dtos/backoffice/PopulationRunRequest.js +1 -18
- package/bin/rewardsEligibility/dtos/backoffice/RunPopulationProgress.d.ts +9 -0
- package/bin/rewardsEligibility/dtos/backoffice/RunPopulationProgress.js +7 -0
- package/bin/rewardsEligibility/dtos/backoffice/RunResponse.d.ts +19 -0
- package/bin/rewardsEligibility/dtos/backoffice/segments/PopulationSegmentDefinition.d.ts +8 -0
- package/bin/rewardsEligibility/dtos/backoffice/segments/PopulationSegmentDefinition.js +40 -0
- package/bin/rewardsEligibility/dtos/backoffice/segments/PrivateSegmentResponse.d.ts +11 -0
- package/bin/rewardsEligibility/dtos/backoffice/segments/PrivateSegmentResponse.js +7 -0
- package/bin/rewardsEligibility/dtos/backoffice/segments/SegmentAggregateCondition.d.ts +18 -0
- package/bin/rewardsEligibility/dtos/backoffice/segments/SegmentAggregateCondition.js +71 -0
- package/bin/rewardsEligibility/dtos/backoffice/segments/SegmentColumnCondition.d.ts +11 -0
- package/bin/rewardsEligibility/dtos/backoffice/segments/SegmentColumnCondition.js +46 -0
- package/bin/rewardsEligibility/dtos/backoffice/segments/SegmentExecutionPageResponse.d.ts +8 -0
- package/bin/rewardsEligibility/dtos/backoffice/segments/SegmentExecutionPageResponse.js +6 -0
- package/bin/rewardsEligibility/dtos/backoffice/segments/SegmentExecutionRequest.d.ts +6 -0
- package/bin/rewardsEligibility/dtos/backoffice/segments/SegmentExecutionRequest.js +31 -0
- package/bin/rewardsEligibility/dtos/backoffice/segments/SegmentExecutionResponse.d.ts +7 -0
- package/bin/rewardsEligibility/dtos/backoffice/segments/SegmentExecutionResponse.js +6 -0
- package/bin/rewardsEligibility/dtos/backoffice/segments/SegmentGroup.d.ts +9 -0
- package/bin/rewardsEligibility/dtos/backoffice/segments/SegmentGroup.js +44 -0
- package/bin/rewardsEligibility/dtos/backoffice/segments/SegmentLastTest.d.ts +8 -0
- package/bin/rewardsEligibility/dtos/backoffice/segments/SegmentLastTest.js +6 -0
- package/bin/rewardsEligibility/dtos/backoffice/segments/SegmentListResponse.d.ts +9 -0
- package/bin/rewardsEligibility/dtos/backoffice/segments/SegmentListResponse.js +10 -0
- package/bin/rewardsEligibility/dtos/backoffice/segments/SegmentParam.d.ts +10 -0
- package/bin/rewardsEligibility/dtos/backoffice/segments/SegmentParam.js +7 -0
- package/bin/rewardsEligibility/dtos/backoffice/segments/SegmentSaveRequest.d.ts +13 -0
- package/bin/rewardsEligibility/dtos/backoffice/segments/SegmentSaveRequest.js +58 -0
- package/bin/rewardsEligibility/dtos/backoffice/segments/SegmentSchemaResponse.d.ts +10 -0
- package/bin/rewardsEligibility/dtos/backoffice/segments/SegmentSchemaResponse.js +10 -0
- package/bin/rewardsEligibility/dtos/backoffice/segments/SegmentStatusRequest.d.ts +6 -0
- package/bin/rewardsEligibility/dtos/backoffice/segments/SegmentStatusRequest.js +31 -0
- package/bin/rewardsEligibility/dtos/backoffice/segments/SegmentTableSchemaResponse.d.ts +12 -0
- package/bin/rewardsEligibility/dtos/backoffice/segments/SegmentTableSchemaResponse.js +9 -0
- package/bin/rewardsEligibility/dtos/backoffice/segments/SegmentTestRequest.d.ts +4 -0
- package/bin/rewardsEligibility/dtos/backoffice/segments/SegmentTestRequest.js +25 -0
- package/bin/rewardsEligibility/dtos/backoffice/segments/SegmentTestResponse.d.ts +26 -0
- package/bin/rewardsEligibility/dtos/backoffice/segments/SegmentTestResponse.js +12 -0
- package/bin/rewardsEligibility/dtos/backoffice/segments/SegmentUsedByResponse.d.ts +21 -0
- package/bin/rewardsEligibility/dtos/backoffice/segments/SegmentUsedByResponse.js +12 -0
- package/bin/rewardsEligibility/dtos/backoffice/segments/SegmentUsedColumn.d.ts +5 -0
- package/bin/rewardsEligibility/dtos/backoffice/segments/SegmentUsedColumn.js +6 -0
- package/bin/rewardsEligibility/dtos/backoffice/segments/SegmentVersionListResponse.d.ts +4 -0
- package/bin/rewardsEligibility/dtos/backoffice/segments/SegmentVersionListResponse.js +6 -0
- package/bin/rewardsEligibility/dtos/backoffice/segments/SegmentVersionResponse.d.ts +24 -0
- package/bin/rewardsEligibility/dtos/backoffice/segments/SegmentVersionResponse.js +6 -0
- package/bin/rewardsEligibility/dtos/backoffice/segments/SegmentVersionSummaryResponse.d.ts +12 -0
- package/bin/rewardsEligibility/dtos/backoffice/segments/SegmentVersionSummaryResponse.js +7 -0
- package/bin/rewardsEligibility/dtos/backoffice/segments/SegmentWindow.d.ts +5 -0
- package/bin/rewardsEligibility/dtos/backoffice/segments/SegmentWindow.js +31 -0
- package/bin/rewardsEligibility/dtos/messages/EvaluateBatchMessage.d.ts +14 -0
- package/bin/rewardsEligibility/dtos/messages/EvaluateBatchMessage.js +61 -0
- package/bin/rewardsEligibility/dtos/messages/GrantBatchMessage.d.ts +8 -0
- package/bin/rewardsEligibility/dtos/messages/GrantBatchMessage.js +42 -0
- package/bin/rewardsEligibility/dtos/messages/PopulationPageMessage.d.ts +6 -0
- package/bin/rewardsEligibility/dtos/messages/PopulationPageMessage.js +30 -0
- package/bin/rewardsEligibility/dtos/messages/ReleaseTrancheMessage.d.ts +6 -0
- package/bin/rewardsEligibility/dtos/messages/ReleaseTrancheMessage.js +30 -0
- package/bin/rewardsEligibility/enums/EligibilityMessageTypeEnum.d.ts +6 -0
- package/bin/rewardsEligibility/enums/EligibilityMessageTypeEnum.js +11 -0
- package/bin/rewardsEligibility/enums/SegmentAggregateFnEnum.d.ts +5 -0
- package/bin/rewardsEligibility/enums/SegmentAggregateFnEnum.js +9 -0
- package/bin/rewardsEligibility/enums/SegmentConditionKindEnum.d.ts +4 -0
- package/bin/rewardsEligibility/enums/SegmentConditionKindEnum.js +8 -0
- package/bin/rewardsEligibility/enums/SegmentErrorCodeEnum.d.ts +16 -0
- package/bin/rewardsEligibility/enums/SegmentErrorCodeEnum.js +20 -0
- package/bin/rewardsEligibility/enums/SegmentMatchEnum.d.ts +4 -0
- package/bin/rewardsEligibility/enums/SegmentMatchEnum.js +8 -0
- package/bin/rewardsEligibility/enums/SegmentOperatorEnum.d.ts +16 -0
- package/bin/rewardsEligibility/enums/SegmentOperatorEnum.js +20 -0
- package/bin/rewardsEligibility/enums/SegmentParamSourceEnum.d.ts +5 -0
- package/bin/rewardsEligibility/enums/SegmentParamSourceEnum.js +9 -0
- package/bin/rewardsEligibility/enums/SegmentParamTypeEnum.d.ts +7 -0
- package/bin/rewardsEligibility/enums/SegmentParamTypeEnum.js +11 -0
- package/bin/rewardsEligibility/enums/SegmentStatusEnum.d.ts +5 -0
- package/bin/rewardsEligibility/enums/SegmentStatusEnum.js +9 -0
- package/bin/rewardsEligibility/enums/SegmentTestStatusEnum.d.ts +5 -0
- package/bin/rewardsEligibility/enums/SegmentTestStatusEnum.js +9 -0
- package/bin/rewardsEligibility/index.d.ts +39 -2
- package/bin/rewardsEligibility/index.js +43 -2
- package/package.json +1 -1
- package/src/rewardsEligibility/constants/BackofficeLimits.ts +2 -0
- package/src/rewardsEligibility/constants/SegmentLimits.ts +5 -0
- package/src/rewardsEligibility/dtos/EvaluationTrigger.ts +0 -3
- package/src/rewardsEligibility/dtos/backoffice/CreateRunRequest.ts +3 -2
- package/src/rewardsEligibility/dtos/backoffice/EvaluationRequest.ts +16 -2
- package/src/rewardsEligibility/dtos/backoffice/EvaluationResponse.ts +2 -0
- package/src/rewardsEligibility/dtos/backoffice/PopulationRunRequest.ts +2 -11
- package/src/rewardsEligibility/dtos/backoffice/RunPopulationProgress.ts +9 -0
- package/src/rewardsEligibility/dtos/backoffice/RunResponse.ts +12 -0
- package/src/rewardsEligibility/dtos/backoffice/segments/PopulationSegmentDefinition.ts +12 -0
- package/src/rewardsEligibility/dtos/backoffice/segments/PrivateSegmentResponse.ts +12 -0
- package/src/rewardsEligibility/dtos/backoffice/segments/SegmentAggregateCondition.ts +22 -0
- package/src/rewardsEligibility/dtos/backoffice/segments/SegmentColumnCondition.ts +15 -0
- package/src/rewardsEligibility/dtos/backoffice/segments/SegmentExecutionPageResponse.ts +8 -0
- package/src/rewardsEligibility/dtos/backoffice/segments/SegmentExecutionRequest.ts +17 -0
- package/src/rewardsEligibility/dtos/backoffice/segments/SegmentExecutionResponse.ts +7 -0
- package/src/rewardsEligibility/dtos/backoffice/segments/SegmentGroup.ts +27 -0
- package/src/rewardsEligibility/dtos/backoffice/segments/SegmentLastTest.ts +8 -0
- package/src/rewardsEligibility/dtos/backoffice/segments/SegmentListResponse.ts +11 -0
- package/src/rewardsEligibility/dtos/backoffice/segments/SegmentParam.ts +11 -0
- package/src/rewardsEligibility/dtos/backoffice/segments/SegmentSaveRequest.ts +16 -0
- package/src/rewardsEligibility/dtos/backoffice/segments/SegmentSchemaResponse.ts +11 -0
- package/src/rewardsEligibility/dtos/backoffice/segments/SegmentStatusRequest.ts +9 -0
- package/src/rewardsEligibility/dtos/backoffice/segments/SegmentTableSchemaResponse.ts +14 -0
- package/src/rewardsEligibility/dtos/backoffice/segments/SegmentTestRequest.ts +7 -0
- package/src/rewardsEligibility/dtos/backoffice/segments/SegmentTestResponse.ts +29 -0
- package/src/rewardsEligibility/dtos/backoffice/segments/SegmentUsedByResponse.ts +24 -0
- package/src/rewardsEligibility/dtos/backoffice/segments/SegmentUsedColumn.ts +5 -0
- package/src/rewardsEligibility/dtos/backoffice/segments/SegmentVersionListResponse.ts +5 -0
- package/src/rewardsEligibility/dtos/backoffice/segments/SegmentVersionResponse.ts +25 -0
- package/src/rewardsEligibility/dtos/backoffice/segments/SegmentVersionSummaryResponse.ts +13 -0
- package/src/rewardsEligibility/dtos/backoffice/segments/SegmentWindow.ts +9 -0
- package/src/rewardsEligibility/dtos/messages/EvaluateBatchMessage.ts +42 -0
- package/src/rewardsEligibility/dtos/messages/GrantBatchMessage.ts +25 -0
- package/src/rewardsEligibility/dtos/messages/PopulationPageMessage.ts +15 -0
- package/src/rewardsEligibility/dtos/messages/ReleaseTrancheMessage.ts +15 -0
- package/src/rewardsEligibility/enums/EligibilityMessageTypeEnum.ts +7 -0
- package/src/rewardsEligibility/enums/SegmentAggregateFnEnum.ts +5 -0
- package/src/rewardsEligibility/enums/SegmentConditionKindEnum.ts +4 -0
- package/src/rewardsEligibility/enums/SegmentErrorCodeEnum.ts +16 -0
- package/src/rewardsEligibility/enums/SegmentMatchEnum.ts +4 -0
- package/src/rewardsEligibility/enums/SegmentOperatorEnum.ts +16 -0
- package/src/rewardsEligibility/enums/SegmentParamSourceEnum.ts +5 -0
- package/src/rewardsEligibility/enums/SegmentParamTypeEnum.ts +7 -0
- package/src/rewardsEligibility/enums/SegmentStatusEnum.ts +5 -0
- package/src/rewardsEligibility/enums/SegmentTestStatusEnum.ts +5 -0
- package/src/rewardsEligibility/index.ts +47 -2
- package/bin/rewardsEligibility/dtos/PopulationRef.d.ts +0 -6
- package/bin/rewardsEligibility/dtos/PopulationRef.js +0 -7
- package/bin/rewardsEligibility/dtos/backoffice/PopulationSourceResponse.d.ts +0 -11
- package/bin/rewardsEligibility/dtos/backoffice/PopulationSourceResponse.js +0 -7
- package/src/rewardsEligibility/dtos/PopulationRef.ts +0 -7
- package/src/rewardsEligibility/dtos/backoffice/PopulationSourceResponse.ts +0 -12
|
@@ -0,0 +1,31 @@
|
|
|
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.SegmentWindow = void 0;
|
|
13
|
+
const class_transformer_1 = require("class-transformer");
|
|
14
|
+
const class_validator_1 = require("class-validator");
|
|
15
|
+
const SegmentLimits_1 = require("../../../constants/SegmentLimits");
|
|
16
|
+
/** Ventana relativa [referenceAt - days, referenceAt) sobre una columna de fecha (A§4.1). */
|
|
17
|
+
class SegmentWindow {
|
|
18
|
+
}
|
|
19
|
+
exports.SegmentWindow = SegmentWindow;
|
|
20
|
+
__decorate([
|
|
21
|
+
(0, class_transformer_1.Expose)(),
|
|
22
|
+
(0, class_validator_1.Matches)(SegmentLimits_1.SEGMENT_IDENTIFIER_PATTERN),
|
|
23
|
+
__metadata("design:type", String)
|
|
24
|
+
], SegmentWindow.prototype, "dateColumn", void 0);
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, class_transformer_1.Expose)(),
|
|
27
|
+
(0, class_validator_1.IsInt)(),
|
|
28
|
+
(0, class_validator_1.Min)(1),
|
|
29
|
+
(0, class_validator_1.Max)(SegmentLimits_1.SEGMENT_MAX_DAYS),
|
|
30
|
+
__metadata("design:type", Number)
|
|
31
|
+
], SegmentWindow.prototype, "days", void 0);
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { DynamicFormValue } from '../../../dynamicForm/types/DynamicFormValue';
|
|
2
|
+
import { EligibilityMessageTypeEnum } from '../../enums/EligibilityMessageTypeEnum';
|
|
3
|
+
/** Un sujeto del lote. No lleva hechos precargados: la evaluacion siempre es en vivo. */
|
|
4
|
+
export declare class EvaluateBatchSubject {
|
|
5
|
+
subjectKey: string;
|
|
6
|
+
inputs: Record<string, DynamicFormValue>;
|
|
7
|
+
}
|
|
8
|
+
/** Lote de hasta 100 sujetos a evaluar en una corrida masiva. */
|
|
9
|
+
export declare class EvaluateBatchMessage {
|
|
10
|
+
messageType: EligibilityMessageTypeEnum.EVALUATE_BATCH;
|
|
11
|
+
runId: string;
|
|
12
|
+
batchId: string;
|
|
13
|
+
subjects: EvaluateBatchSubject[];
|
|
14
|
+
}
|
|
@@ -0,0 +1,61 @@
|
|
|
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.EvaluateBatchMessage = exports.EvaluateBatchSubject = void 0;
|
|
13
|
+
const class_transformer_1 = require("class-transformer");
|
|
14
|
+
const class_validator_1 = require("class-validator");
|
|
15
|
+
const IsDynamicFormValues_1 = require("../../../dynamicForm/validators/IsDynamicFormValues");
|
|
16
|
+
const EligibilityMessageTypeEnum_1 = require("../../enums/EligibilityMessageTypeEnum");
|
|
17
|
+
/** Un sujeto del lote. No lleva hechos precargados: la evaluacion siempre es en vivo. */
|
|
18
|
+
class EvaluateBatchSubject {
|
|
19
|
+
}
|
|
20
|
+
exports.EvaluateBatchSubject = EvaluateBatchSubject;
|
|
21
|
+
__decorate([
|
|
22
|
+
(0, class_transformer_1.Expose)(),
|
|
23
|
+
(0, class_validator_1.IsString)(),
|
|
24
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
25
|
+
__metadata("design:type", String)
|
|
26
|
+
], EvaluateBatchSubject.prototype, "subjectKey", void 0);
|
|
27
|
+
__decorate([
|
|
28
|
+
(0, class_transformer_1.Expose)(),
|
|
29
|
+
(0, class_validator_1.Validate)(IsDynamicFormValues_1.IsDynamicFormValues),
|
|
30
|
+
__metadata("design:type", Object)
|
|
31
|
+
], EvaluateBatchSubject.prototype, "inputs", void 0);
|
|
32
|
+
/** Lote de hasta 100 sujetos a evaluar en una corrida masiva. */
|
|
33
|
+
class EvaluateBatchMessage {
|
|
34
|
+
}
|
|
35
|
+
exports.EvaluateBatchMessage = EvaluateBatchMessage;
|
|
36
|
+
__decorate([
|
|
37
|
+
(0, class_transformer_1.Expose)(),
|
|
38
|
+
(0, class_validator_1.Equals)(EligibilityMessageTypeEnum_1.EligibilityMessageTypeEnum.EVALUATE_BATCH),
|
|
39
|
+
__metadata("design:type", String)
|
|
40
|
+
], EvaluateBatchMessage.prototype, "messageType", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
(0, class_transformer_1.Expose)(),
|
|
43
|
+
(0, class_validator_1.IsString)(),
|
|
44
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
45
|
+
__metadata("design:type", String)
|
|
46
|
+
], EvaluateBatchMessage.prototype, "runId", void 0);
|
|
47
|
+
__decorate([
|
|
48
|
+
(0, class_transformer_1.Expose)(),
|
|
49
|
+
(0, class_validator_1.IsString)(),
|
|
50
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
51
|
+
__metadata("design:type", String)
|
|
52
|
+
], EvaluateBatchMessage.prototype, "batchId", void 0);
|
|
53
|
+
__decorate([
|
|
54
|
+
(0, class_transformer_1.Expose)(),
|
|
55
|
+
(0, class_validator_1.IsArray)(),
|
|
56
|
+
(0, class_validator_1.ArrayMinSize)(1),
|
|
57
|
+
(0, class_validator_1.ArrayMaxSize)(100),
|
|
58
|
+
(0, class_validator_1.ValidateNested)({ each: true }),
|
|
59
|
+
(0, class_transformer_1.Type)(() => EvaluateBatchSubject),
|
|
60
|
+
__metadata("design:type", Array)
|
|
61
|
+
], EvaluateBatchMessage.prototype, "subjects", void 0);
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { EligibilityMessageTypeEnum } from '../../enums/EligibilityMessageTypeEnum';
|
|
2
|
+
/** Publica las entregas (grants) de una parte de un lote de la corrida masiva. */
|
|
3
|
+
export declare class GrantBatchMessage {
|
|
4
|
+
messageType: EligibilityMessageTypeEnum.GRANT_BATCH;
|
|
5
|
+
runId: string;
|
|
6
|
+
batchId: string;
|
|
7
|
+
part: number;
|
|
8
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
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.GrantBatchMessage = void 0;
|
|
13
|
+
const class_transformer_1 = require("class-transformer");
|
|
14
|
+
const class_validator_1 = require("class-validator");
|
|
15
|
+
const EligibilityMessageTypeEnum_1 = require("../../enums/EligibilityMessageTypeEnum");
|
|
16
|
+
/** Publica las entregas (grants) de una parte de un lote de la corrida masiva. */
|
|
17
|
+
class GrantBatchMessage {
|
|
18
|
+
}
|
|
19
|
+
exports.GrantBatchMessage = GrantBatchMessage;
|
|
20
|
+
__decorate([
|
|
21
|
+
(0, class_transformer_1.Expose)(),
|
|
22
|
+
(0, class_validator_1.Equals)(EligibilityMessageTypeEnum_1.EligibilityMessageTypeEnum.GRANT_BATCH),
|
|
23
|
+
__metadata("design:type", String)
|
|
24
|
+
], GrantBatchMessage.prototype, "messageType", void 0);
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, class_transformer_1.Expose)(),
|
|
27
|
+
(0, class_validator_1.IsString)(),
|
|
28
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
29
|
+
__metadata("design:type", String)
|
|
30
|
+
], GrantBatchMessage.prototype, "runId", void 0);
|
|
31
|
+
__decorate([
|
|
32
|
+
(0, class_transformer_1.Expose)(),
|
|
33
|
+
(0, class_validator_1.IsString)(),
|
|
34
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
35
|
+
__metadata("design:type", String)
|
|
36
|
+
], GrantBatchMessage.prototype, "batchId", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, class_transformer_1.Expose)(),
|
|
39
|
+
(0, class_validator_1.IsInt)(),
|
|
40
|
+
(0, class_validator_1.Min)(0),
|
|
41
|
+
__metadata("design:type", Number)
|
|
42
|
+
], GrantBatchMessage.prototype, "part", void 0);
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { EligibilityMessageTypeEnum } from '../../enums/EligibilityMessageTypeEnum';
|
|
2
|
+
/** Pide la siguiente pagina de ids del segmento de una corrida masiva. */
|
|
3
|
+
export declare class PopulationPageMessage {
|
|
4
|
+
messageType: EligibilityMessageTypeEnum.POPULATION_PAGE;
|
|
5
|
+
runId: 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.PopulationPageMessage = void 0;
|
|
13
|
+
const class_transformer_1 = require("class-transformer");
|
|
14
|
+
const class_validator_1 = require("class-validator");
|
|
15
|
+
const EligibilityMessageTypeEnum_1 = require("../../enums/EligibilityMessageTypeEnum");
|
|
16
|
+
/** Pide la siguiente pagina de ids del segmento de una corrida masiva. */
|
|
17
|
+
class PopulationPageMessage {
|
|
18
|
+
}
|
|
19
|
+
exports.PopulationPageMessage = PopulationPageMessage;
|
|
20
|
+
__decorate([
|
|
21
|
+
(0, class_transformer_1.Expose)(),
|
|
22
|
+
(0, class_validator_1.Equals)(EligibilityMessageTypeEnum_1.EligibilityMessageTypeEnum.POPULATION_PAGE),
|
|
23
|
+
__metadata("design:type", String)
|
|
24
|
+
], PopulationPageMessage.prototype, "messageType", void 0);
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, class_transformer_1.Expose)(),
|
|
27
|
+
(0, class_validator_1.IsString)(),
|
|
28
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
29
|
+
__metadata("design:type", String)
|
|
30
|
+
], PopulationPageMessage.prototype, "runId", void 0);
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { EligibilityMessageTypeEnum } from '../../enums/EligibilityMessageTypeEnum';
|
|
2
|
+
/** Libera el tramo `seq` de la publicacion por tramos (RELEASER). */
|
|
3
|
+
export declare class ReleaseTrancheMessage {
|
|
4
|
+
messageType: EligibilityMessageTypeEnum.RELEASE_TRANCHE;
|
|
5
|
+
seq: number;
|
|
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.ReleaseTrancheMessage = void 0;
|
|
13
|
+
const class_transformer_1 = require("class-transformer");
|
|
14
|
+
const class_validator_1 = require("class-validator");
|
|
15
|
+
const EligibilityMessageTypeEnum_1 = require("../../enums/EligibilityMessageTypeEnum");
|
|
16
|
+
/** Libera el tramo `seq` de la publicacion por tramos (RELEASER). */
|
|
17
|
+
class ReleaseTrancheMessage {
|
|
18
|
+
}
|
|
19
|
+
exports.ReleaseTrancheMessage = ReleaseTrancheMessage;
|
|
20
|
+
__decorate([
|
|
21
|
+
(0, class_transformer_1.Expose)(),
|
|
22
|
+
(0, class_validator_1.Equals)(EligibilityMessageTypeEnum_1.EligibilityMessageTypeEnum.RELEASE_TRANCHE),
|
|
23
|
+
__metadata("design:type", String)
|
|
24
|
+
], ReleaseTrancheMessage.prototype, "messageType", void 0);
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, class_transformer_1.Expose)(),
|
|
27
|
+
(0, class_validator_1.IsInt)(),
|
|
28
|
+
(0, class_validator_1.Min)(0),
|
|
29
|
+
__metadata("design:type", Number)
|
|
30
|
+
], ReleaseTrancheMessage.prototype, "seq", void 0);
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.EligibilityMessageTypeEnum = void 0;
|
|
4
|
+
// GRANT_FAILED sigue en RewardsMessageTypeEnum del dominio rewards.
|
|
5
|
+
var EligibilityMessageTypeEnum;
|
|
6
|
+
(function (EligibilityMessageTypeEnum) {
|
|
7
|
+
EligibilityMessageTypeEnum["POPULATION_PAGE"] = "POPULATION_PAGE";
|
|
8
|
+
EligibilityMessageTypeEnum["EVALUATE_BATCH"] = "EVALUATE_BATCH";
|
|
9
|
+
EligibilityMessageTypeEnum["GRANT_BATCH"] = "GRANT_BATCH";
|
|
10
|
+
EligibilityMessageTypeEnum["RELEASE_TRANCHE"] = "RELEASE_TRANCHE";
|
|
11
|
+
})(EligibilityMessageTypeEnum || (exports.EligibilityMessageTypeEnum = EligibilityMessageTypeEnum = {}));
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SegmentAggregateFnEnum = void 0;
|
|
4
|
+
var SegmentAggregateFnEnum;
|
|
5
|
+
(function (SegmentAggregateFnEnum) {
|
|
6
|
+
SegmentAggregateFnEnum["EXISTS"] = "EXISTS";
|
|
7
|
+
SegmentAggregateFnEnum["COUNT"] = "COUNT";
|
|
8
|
+
SegmentAggregateFnEnum["SUM"] = "SUM";
|
|
9
|
+
})(SegmentAggregateFnEnum || (exports.SegmentAggregateFnEnum = SegmentAggregateFnEnum = {}));
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SegmentConditionKindEnum = void 0;
|
|
4
|
+
var SegmentConditionKindEnum;
|
|
5
|
+
(function (SegmentConditionKindEnum) {
|
|
6
|
+
SegmentConditionKindEnum["COLUMN"] = "COLUMN";
|
|
7
|
+
SegmentConditionKindEnum["AGGREGATE"] = "AGGREGATE";
|
|
8
|
+
})(SegmentConditionKindEnum || (exports.SegmentConditionKindEnum = SegmentConditionKindEnum = {}));
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export declare enum SegmentErrorCodeEnum {
|
|
2
|
+
SEGMENT_NOT_FOUND = "SEGMENT_NOT_FOUND",
|
|
3
|
+
SEGMENT_INVALID = "SEGMENT_INVALID",
|
|
4
|
+
SEGMENT_TEST_REQUIRED = "SEGMENT_TEST_REQUIRED",
|
|
5
|
+
SEGMENT_IN_USE = "SEGMENT_IN_USE",
|
|
6
|
+
SEGMENT_NOT_ACTIVE = "SEGMENT_NOT_ACTIVE",
|
|
7
|
+
SEGMENT_BLOCKED_COLUMN = "SEGMENT_BLOCKED_COLUMN",
|
|
8
|
+
SEGMENT_SCHEMA_DRIFT = "SEGMENT_SCHEMA_DRIFT",
|
|
9
|
+
SEGMENT_BYTES_EXCEEDED = "SEGMENT_BYTES_EXCEEDED",
|
|
10
|
+
SEGMENT_QUERY_FAILED = "SEGMENT_QUERY_FAILED",
|
|
11
|
+
SEGMENT_DATALAKE_UNAVAILABLE = "SEGMENT_DATALAKE_UNAVAILABLE",
|
|
12
|
+
SEGMENT_DATALAKE_UNAVAILABLE_IN_ENV = "SEGMENT_DATALAKE_UNAVAILABLE_IN_ENV",
|
|
13
|
+
SEGMENT_VERSION_CONFLICT = "SEGMENT_VERSION_CONFLICT",
|
|
14
|
+
SEGMENT_STATUS_TRANSITION_INVALID = "SEGMENT_STATUS_TRANSITION_INVALID",
|
|
15
|
+
SEGMENT_EXECUTION_NOT_FOUND = "SEGMENT_EXECUTION_NOT_FOUND"
|
|
16
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SegmentErrorCodeEnum = void 0;
|
|
4
|
+
var SegmentErrorCodeEnum;
|
|
5
|
+
(function (SegmentErrorCodeEnum) {
|
|
6
|
+
SegmentErrorCodeEnum["SEGMENT_NOT_FOUND"] = "SEGMENT_NOT_FOUND";
|
|
7
|
+
SegmentErrorCodeEnum["SEGMENT_INVALID"] = "SEGMENT_INVALID";
|
|
8
|
+
SegmentErrorCodeEnum["SEGMENT_TEST_REQUIRED"] = "SEGMENT_TEST_REQUIRED";
|
|
9
|
+
SegmentErrorCodeEnum["SEGMENT_IN_USE"] = "SEGMENT_IN_USE";
|
|
10
|
+
SegmentErrorCodeEnum["SEGMENT_NOT_ACTIVE"] = "SEGMENT_NOT_ACTIVE";
|
|
11
|
+
SegmentErrorCodeEnum["SEGMENT_BLOCKED_COLUMN"] = "SEGMENT_BLOCKED_COLUMN";
|
|
12
|
+
SegmentErrorCodeEnum["SEGMENT_SCHEMA_DRIFT"] = "SEGMENT_SCHEMA_DRIFT";
|
|
13
|
+
SegmentErrorCodeEnum["SEGMENT_BYTES_EXCEEDED"] = "SEGMENT_BYTES_EXCEEDED";
|
|
14
|
+
SegmentErrorCodeEnum["SEGMENT_QUERY_FAILED"] = "SEGMENT_QUERY_FAILED";
|
|
15
|
+
SegmentErrorCodeEnum["SEGMENT_DATALAKE_UNAVAILABLE"] = "SEGMENT_DATALAKE_UNAVAILABLE";
|
|
16
|
+
SegmentErrorCodeEnum["SEGMENT_DATALAKE_UNAVAILABLE_IN_ENV"] = "SEGMENT_DATALAKE_UNAVAILABLE_IN_ENV";
|
|
17
|
+
SegmentErrorCodeEnum["SEGMENT_VERSION_CONFLICT"] = "SEGMENT_VERSION_CONFLICT";
|
|
18
|
+
SegmentErrorCodeEnum["SEGMENT_STATUS_TRANSITION_INVALID"] = "SEGMENT_STATUS_TRANSITION_INVALID";
|
|
19
|
+
SegmentErrorCodeEnum["SEGMENT_EXECUTION_NOT_FOUND"] = "SEGMENT_EXECUTION_NOT_FOUND";
|
|
20
|
+
})(SegmentErrorCodeEnum || (exports.SegmentErrorCodeEnum = SegmentErrorCodeEnum = {}));
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SegmentMatchEnum = void 0;
|
|
4
|
+
var SegmentMatchEnum;
|
|
5
|
+
(function (SegmentMatchEnum) {
|
|
6
|
+
SegmentMatchEnum["ALL"] = "ALL";
|
|
7
|
+
SegmentMatchEnum["ANY"] = "ANY";
|
|
8
|
+
})(SegmentMatchEnum || (exports.SegmentMatchEnum = SegmentMatchEnum = {}));
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export declare enum SegmentOperatorEnum {
|
|
2
|
+
EQUALS = "EQUALS",
|
|
3
|
+
NOT_EQUALS = "NOT_EQUALS",
|
|
4
|
+
IN = "IN",
|
|
5
|
+
NOT_IN = "NOT_IN",
|
|
6
|
+
IS_NULL = "IS_NULL",
|
|
7
|
+
IS_NOT_NULL = "IS_NOT_NULL",
|
|
8
|
+
GT = "GT",
|
|
9
|
+
GTE = "GTE",
|
|
10
|
+
LT = "LT",
|
|
11
|
+
LTE = "LTE",
|
|
12
|
+
CONTAINS = "CONTAINS",
|
|
13
|
+
ANY_IN = "ANY_IN",
|
|
14
|
+
WITHIN_LAST_DAYS = "WITHIN_LAST_DAYS",
|
|
15
|
+
NOT_WITHIN_LAST_DAYS = "NOT_WITHIN_LAST_DAYS"
|
|
16
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SegmentOperatorEnum = void 0;
|
|
4
|
+
var SegmentOperatorEnum;
|
|
5
|
+
(function (SegmentOperatorEnum) {
|
|
6
|
+
SegmentOperatorEnum["EQUALS"] = "EQUALS";
|
|
7
|
+
SegmentOperatorEnum["NOT_EQUALS"] = "NOT_EQUALS";
|
|
8
|
+
SegmentOperatorEnum["IN"] = "IN";
|
|
9
|
+
SegmentOperatorEnum["NOT_IN"] = "NOT_IN";
|
|
10
|
+
SegmentOperatorEnum["IS_NULL"] = "IS_NULL";
|
|
11
|
+
SegmentOperatorEnum["IS_NOT_NULL"] = "IS_NOT_NULL";
|
|
12
|
+
SegmentOperatorEnum["GT"] = "GT";
|
|
13
|
+
SegmentOperatorEnum["GTE"] = "GTE";
|
|
14
|
+
SegmentOperatorEnum["LT"] = "LT";
|
|
15
|
+
SegmentOperatorEnum["LTE"] = "LTE";
|
|
16
|
+
SegmentOperatorEnum["CONTAINS"] = "CONTAINS";
|
|
17
|
+
SegmentOperatorEnum["ANY_IN"] = "ANY_IN";
|
|
18
|
+
SegmentOperatorEnum["WITHIN_LAST_DAYS"] = "WITHIN_LAST_DAYS";
|
|
19
|
+
SegmentOperatorEnum["NOT_WITHIN_LAST_DAYS"] = "NOT_WITHIN_LAST_DAYS";
|
|
20
|
+
})(SegmentOperatorEnum || (exports.SegmentOperatorEnum = SegmentOperatorEnum = {}));
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SegmentParamSourceEnum = void 0;
|
|
4
|
+
var SegmentParamSourceEnum;
|
|
5
|
+
(function (SegmentParamSourceEnum) {
|
|
6
|
+
SegmentParamSourceEnum["LITERAL"] = "LITERAL";
|
|
7
|
+
SegmentParamSourceEnum["REFERENCE_AT"] = "REFERENCE_AT";
|
|
8
|
+
SegmentParamSourceEnum["REFERENCE_AT_MINUS_DAYS"] = "REFERENCE_AT_MINUS_DAYS";
|
|
9
|
+
})(SegmentParamSourceEnum || (exports.SegmentParamSourceEnum = SegmentParamSourceEnum = {}));
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SegmentParamTypeEnum = void 0;
|
|
4
|
+
var SegmentParamTypeEnum;
|
|
5
|
+
(function (SegmentParamTypeEnum) {
|
|
6
|
+
SegmentParamTypeEnum["STRING"] = "STRING";
|
|
7
|
+
SegmentParamTypeEnum["INTEGER"] = "INTEGER";
|
|
8
|
+
SegmentParamTypeEnum["DECIMAL"] = "DECIMAL";
|
|
9
|
+
SegmentParamTypeEnum["BOOLEAN"] = "BOOLEAN";
|
|
10
|
+
SegmentParamTypeEnum["TIMESTAMP"] = "TIMESTAMP";
|
|
11
|
+
})(SegmentParamTypeEnum || (exports.SegmentParamTypeEnum = SegmentParamTypeEnum = {}));
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SegmentStatusEnum = void 0;
|
|
4
|
+
var SegmentStatusEnum;
|
|
5
|
+
(function (SegmentStatusEnum) {
|
|
6
|
+
SegmentStatusEnum["DRAFT"] = "DRAFT";
|
|
7
|
+
SegmentStatusEnum["ACTIVE"] = "ACTIVE";
|
|
8
|
+
SegmentStatusEnum["ARCHIVED"] = "ARCHIVED";
|
|
9
|
+
})(SegmentStatusEnum || (exports.SegmentStatusEnum = SegmentStatusEnum = {}));
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SegmentTestStatusEnum = void 0;
|
|
4
|
+
var SegmentTestStatusEnum;
|
|
5
|
+
(function (SegmentTestStatusEnum) {
|
|
6
|
+
SegmentTestStatusEnum["RUNNING"] = "RUNNING";
|
|
7
|
+
SegmentTestStatusEnum["PASSED"] = "PASSED";
|
|
8
|
+
SegmentTestStatusEnum["FAILED"] = "FAILED";
|
|
9
|
+
})(SegmentTestStatusEnum || (exports.SegmentTestStatusEnum = SegmentTestStatusEnum = {}));
|
|
@@ -26,7 +26,6 @@ export * from './types/RewardInputRef';
|
|
|
26
26
|
export * from './dtos/GrantPolicy';
|
|
27
27
|
export * from './dtos/CampaignQuota';
|
|
28
28
|
export * from './dtos/CampaignAlerts';
|
|
29
|
-
export * from './dtos/PopulationRef';
|
|
30
29
|
export * from './dtos/EvaluationReward';
|
|
31
30
|
export * from './dtos/EvaluationTrigger';
|
|
32
31
|
export * from './enums/MetricsDimensionEnum';
|
|
@@ -50,7 +49,6 @@ export * from './dtos/backoffice/ResultTraceResponse';
|
|
|
50
49
|
export * from './dtos/backoffice/SimulateRequest';
|
|
51
50
|
export * from './dtos/backoffice/SimulateResponse';
|
|
52
51
|
export * from './dtos/backoffice/RuleCatalogResponse';
|
|
53
|
-
export * from './dtos/backoffice/PopulationSourceResponse';
|
|
54
52
|
export * from './dtos/backoffice/InputTypeResponse';
|
|
55
53
|
export * from './dtos/backoffice/RulesChatTurn';
|
|
56
54
|
export * from './dtos/backoffice/GenerateRulesRequest';
|
|
@@ -68,3 +66,42 @@ export * from './dtos/backoffice/MetricsPointResponse';
|
|
|
68
66
|
export * from './dtos/backoffice/FailedConditionStatResponse';
|
|
69
67
|
export * from './dtos/backoffice/FailedConditionEvaluationResponse';
|
|
70
68
|
export * from './dtos/backoffice/MetricsQuery';
|
|
69
|
+
export * from './enums/SegmentStatusEnum';
|
|
70
|
+
export * from './enums/SegmentTestStatusEnum';
|
|
71
|
+
export * from './enums/SegmentMatchEnum';
|
|
72
|
+
export * from './enums/SegmentConditionKindEnum';
|
|
73
|
+
export * from './enums/SegmentAggregateFnEnum';
|
|
74
|
+
export * from './enums/SegmentOperatorEnum';
|
|
75
|
+
export * from './enums/SegmentParamTypeEnum';
|
|
76
|
+
export * from './enums/SegmentParamSourceEnum';
|
|
77
|
+
export * from './enums/SegmentErrorCodeEnum';
|
|
78
|
+
export * from './enums/EligibilityMessageTypeEnum';
|
|
79
|
+
export * from './constants/SegmentLimits';
|
|
80
|
+
export * from './dtos/backoffice/segments/SegmentWindow';
|
|
81
|
+
export * from './dtos/backoffice/segments/SegmentColumnCondition';
|
|
82
|
+
export * from './dtos/backoffice/segments/SegmentAggregateCondition';
|
|
83
|
+
export * from './dtos/backoffice/segments/SegmentGroup';
|
|
84
|
+
export * from './dtos/backoffice/segments/PopulationSegmentDefinition';
|
|
85
|
+
export * from './dtos/backoffice/segments/SegmentParam';
|
|
86
|
+
export * from './dtos/backoffice/segments/SegmentUsedColumn';
|
|
87
|
+
export * from './dtos/backoffice/segments/SegmentLastTest';
|
|
88
|
+
export * from './dtos/backoffice/segments/SegmentTestRequest';
|
|
89
|
+
export * from './dtos/backoffice/segments/SegmentTestResponse';
|
|
90
|
+
export * from './dtos/backoffice/segments/SegmentSaveRequest';
|
|
91
|
+
export * from './dtos/backoffice/segments/SegmentStatusRequest';
|
|
92
|
+
export * from './dtos/backoffice/segments/SegmentVersionResponse';
|
|
93
|
+
export * from './dtos/backoffice/segments/SegmentVersionSummaryResponse';
|
|
94
|
+
export * from './dtos/backoffice/segments/SegmentListResponse';
|
|
95
|
+
export * from './dtos/backoffice/segments/SegmentVersionListResponse';
|
|
96
|
+
export * from './dtos/backoffice/segments/SegmentSchemaResponse';
|
|
97
|
+
export * from './dtos/backoffice/segments/SegmentTableSchemaResponse';
|
|
98
|
+
export * from './dtos/backoffice/segments/SegmentUsedByResponse';
|
|
99
|
+
export * from './dtos/messages/PopulationPageMessage';
|
|
100
|
+
export * from './dtos/messages/EvaluateBatchMessage';
|
|
101
|
+
export * from './dtos/messages/GrantBatchMessage';
|
|
102
|
+
export * from './dtos/messages/ReleaseTrancheMessage';
|
|
103
|
+
export * from './dtos/backoffice/segments/PrivateSegmentResponse';
|
|
104
|
+
export * from './dtos/backoffice/segments/SegmentExecutionRequest';
|
|
105
|
+
export * from './dtos/backoffice/segments/SegmentExecutionResponse';
|
|
106
|
+
export * from './dtos/backoffice/segments/SegmentExecutionPageResponse';
|
|
107
|
+
export * from './dtos/backoffice/RunPopulationProgress';
|
|
@@ -47,7 +47,6 @@ __exportStar(require("./types/RewardInputRef"), exports);
|
|
|
47
47
|
__exportStar(require("./dtos/GrantPolicy"), exports);
|
|
48
48
|
__exportStar(require("./dtos/CampaignQuota"), exports);
|
|
49
49
|
__exportStar(require("./dtos/CampaignAlerts"), exports);
|
|
50
|
-
__exportStar(require("./dtos/PopulationRef"), exports);
|
|
51
50
|
__exportStar(require("./dtos/EvaluationReward"), exports);
|
|
52
51
|
__exportStar(require("./dtos/EvaluationTrigger"), exports);
|
|
53
52
|
//Backoffice (fase 3): enums, constantes y DTOs
|
|
@@ -72,7 +71,6 @@ __exportStar(require("./dtos/backoffice/ResultTraceResponse"), exports);
|
|
|
72
71
|
__exportStar(require("./dtos/backoffice/SimulateRequest"), exports);
|
|
73
72
|
__exportStar(require("./dtos/backoffice/SimulateResponse"), exports);
|
|
74
73
|
__exportStar(require("./dtos/backoffice/RuleCatalogResponse"), exports);
|
|
75
|
-
__exportStar(require("./dtos/backoffice/PopulationSourceResponse"), exports);
|
|
76
74
|
__exportStar(require("./dtos/backoffice/InputTypeResponse"), exports);
|
|
77
75
|
__exportStar(require("./dtos/backoffice/RulesChatTurn"), exports);
|
|
78
76
|
__exportStar(require("./dtos/backoffice/GenerateRulesRequest"), exports);
|
|
@@ -90,3 +88,46 @@ __exportStar(require("./dtos/backoffice/MetricsPointResponse"), exports);
|
|
|
90
88
|
__exportStar(require("./dtos/backoffice/FailedConditionStatResponse"), exports);
|
|
91
89
|
__exportStar(require("./dtos/backoffice/FailedConditionEvaluationResponse"), exports);
|
|
92
90
|
__exportStar(require("./dtos/backoffice/MetricsQuery"), exports);
|
|
91
|
+
//Segmentos de poblacion (adenda 2026-10-12)
|
|
92
|
+
__exportStar(require("./enums/SegmentStatusEnum"), exports);
|
|
93
|
+
__exportStar(require("./enums/SegmentTestStatusEnum"), exports);
|
|
94
|
+
__exportStar(require("./enums/SegmentMatchEnum"), exports);
|
|
95
|
+
__exportStar(require("./enums/SegmentConditionKindEnum"), exports);
|
|
96
|
+
__exportStar(require("./enums/SegmentAggregateFnEnum"), exports);
|
|
97
|
+
__exportStar(require("./enums/SegmentOperatorEnum"), exports);
|
|
98
|
+
__exportStar(require("./enums/SegmentParamTypeEnum"), exports);
|
|
99
|
+
__exportStar(require("./enums/SegmentParamSourceEnum"), exports);
|
|
100
|
+
__exportStar(require("./enums/SegmentErrorCodeEnum"), exports);
|
|
101
|
+
__exportStar(require("./enums/EligibilityMessageTypeEnum"), exports);
|
|
102
|
+
__exportStar(require("./constants/SegmentLimits"), exports);
|
|
103
|
+
//Segmentos de poblacion: definicion del constructor (A2)
|
|
104
|
+
__exportStar(require("./dtos/backoffice/segments/SegmentWindow"), exports);
|
|
105
|
+
__exportStar(require("./dtos/backoffice/segments/SegmentColumnCondition"), exports);
|
|
106
|
+
__exportStar(require("./dtos/backoffice/segments/SegmentAggregateCondition"), exports);
|
|
107
|
+
__exportStar(require("./dtos/backoffice/segments/SegmentGroup"), exports);
|
|
108
|
+
__exportStar(require("./dtos/backoffice/segments/PopulationSegmentDefinition"), exports);
|
|
109
|
+
//Segmentos de poblacion: request/response del backoffice (A3)
|
|
110
|
+
__exportStar(require("./dtos/backoffice/segments/SegmentParam"), exports);
|
|
111
|
+
__exportStar(require("./dtos/backoffice/segments/SegmentUsedColumn"), exports);
|
|
112
|
+
__exportStar(require("./dtos/backoffice/segments/SegmentLastTest"), exports);
|
|
113
|
+
__exportStar(require("./dtos/backoffice/segments/SegmentTestRequest"), exports);
|
|
114
|
+
__exportStar(require("./dtos/backoffice/segments/SegmentTestResponse"), exports);
|
|
115
|
+
__exportStar(require("./dtos/backoffice/segments/SegmentSaveRequest"), exports);
|
|
116
|
+
__exportStar(require("./dtos/backoffice/segments/SegmentStatusRequest"), exports);
|
|
117
|
+
__exportStar(require("./dtos/backoffice/segments/SegmentVersionResponse"), exports);
|
|
118
|
+
__exportStar(require("./dtos/backoffice/segments/SegmentVersionSummaryResponse"), exports);
|
|
119
|
+
__exportStar(require("./dtos/backoffice/segments/SegmentListResponse"), exports);
|
|
120
|
+
__exportStar(require("./dtos/backoffice/segments/SegmentVersionListResponse"), exports);
|
|
121
|
+
__exportStar(require("./dtos/backoffice/segments/SegmentSchemaResponse"), exports);
|
|
122
|
+
__exportStar(require("./dtos/backoffice/segments/SegmentTableSchemaResponse"), exports);
|
|
123
|
+
__exportStar(require("./dtos/backoffice/segments/SegmentUsedByResponse"), exports);
|
|
124
|
+
//Segmentos de poblacion: mensajes SQS, endpoint privado y avance de corrida (A4)
|
|
125
|
+
__exportStar(require("./dtos/messages/PopulationPageMessage"), exports);
|
|
126
|
+
__exportStar(require("./dtos/messages/EvaluateBatchMessage"), exports);
|
|
127
|
+
__exportStar(require("./dtos/messages/GrantBatchMessage"), exports);
|
|
128
|
+
__exportStar(require("./dtos/messages/ReleaseTrancheMessage"), exports);
|
|
129
|
+
__exportStar(require("./dtos/backoffice/segments/PrivateSegmentResponse"), exports);
|
|
130
|
+
__exportStar(require("./dtos/backoffice/segments/SegmentExecutionRequest"), exports);
|
|
131
|
+
__exportStar(require("./dtos/backoffice/segments/SegmentExecutionResponse"), exports);
|
|
132
|
+
__exportStar(require("./dtos/backoffice/segments/SegmentExecutionPageResponse"), exports);
|
|
133
|
+
__exportStar(require("./dtos/backoffice/RunPopulationProgress"), exports);
|
package/package.json
CHANGED
|
@@ -14,3 +14,5 @@ export const LIST_PAGE_MAX = 100;
|
|
|
14
14
|
export const RULES_CHAT_TURN_MAX_LENGTH = 4000;
|
|
15
15
|
/** Tope de seguridad de turnos que acepta el DTO (el límite funcional, 10, lo aplica el lambda con `AI_CHAT_HISTORY_TOO_LONG`). */
|
|
16
16
|
export const RULES_CHAT_MAX_TURNS_HARD = 50;
|
|
17
|
+
/** Llave de un input de una evaluacion (ej. `directoryId`). */
|
|
18
|
+
export const INPUT_KEY_PATTERN = /^[a-zA-Z][a-zA-Z0-9_]{0,63}$/;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/** Identificador SQL permitido para tabla/columna (A§4.3 paso 1): minusculas, digitos y guion bajo; nunca texto libre. */
|
|
2
|
+
export const SEGMENT_IDENTIFIER_PATTERN = /^[a-z_][a-z0-9_]*$/;
|
|
3
|
+
export const SEGMENT_MAX_DAYS = 365;
|
|
4
|
+
export const SEGMENT_MAX_PARAMS = 40;
|
|
5
|
+
export const SEGMENT_MAX_AGGREGATES = 8;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { ApprovalModeEnum } from '../enums/ApprovalModeEnum';
|
|
2
2
|
import { TriggerTypeEnum } from '../enums/TriggerTypeEnum';
|
|
3
|
-
import { PopulationRef } from './PopulationRef';
|
|
4
3
|
|
|
5
4
|
/** Disparador de una evaluacion (spec B 5.1). Una evaluacion tiene a lo sumo UN disparador `EVENT`. */
|
|
6
5
|
export class EvaluationTrigger {
|
|
@@ -10,6 +9,4 @@ export class EvaluationTrigger {
|
|
|
10
9
|
eventKey?: string;
|
|
11
10
|
/** Solo `CRON`: cron de 5 campos, granularidad de 15 minutos (fase 4). */
|
|
12
11
|
schedule?: string;
|
|
13
|
-
/** Solo `CRON` (fase 4). */
|
|
14
|
-
population?: PopulationRef;
|
|
15
12
|
}
|