@fiado/type-kit 3.529.0 → 3.530.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 +6 -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/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 -0
- package/bin/rewardsEligibility/index.js +43 -0
- 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/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 -0
|
@@ -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 = {}));
|
|
@@ -68,3 +68,42 @@ export * from './dtos/backoffice/MetricsPointResponse';
|
|
|
68
68
|
export * from './dtos/backoffice/FailedConditionStatResponse';
|
|
69
69
|
export * from './dtos/backoffice/FailedConditionEvaluationResponse';
|
|
70
70
|
export * from './dtos/backoffice/MetricsQuery';
|
|
71
|
+
export * from './enums/SegmentStatusEnum';
|
|
72
|
+
export * from './enums/SegmentTestStatusEnum';
|
|
73
|
+
export * from './enums/SegmentMatchEnum';
|
|
74
|
+
export * from './enums/SegmentConditionKindEnum';
|
|
75
|
+
export * from './enums/SegmentAggregateFnEnum';
|
|
76
|
+
export * from './enums/SegmentOperatorEnum';
|
|
77
|
+
export * from './enums/SegmentParamTypeEnum';
|
|
78
|
+
export * from './enums/SegmentParamSourceEnum';
|
|
79
|
+
export * from './enums/SegmentErrorCodeEnum';
|
|
80
|
+
export * from './enums/EligibilityMessageTypeEnum';
|
|
81
|
+
export * from './constants/SegmentLimits';
|
|
82
|
+
export * from './dtos/backoffice/segments/SegmentWindow';
|
|
83
|
+
export * from './dtos/backoffice/segments/SegmentColumnCondition';
|
|
84
|
+
export * from './dtos/backoffice/segments/SegmentAggregateCondition';
|
|
85
|
+
export * from './dtos/backoffice/segments/SegmentGroup';
|
|
86
|
+
export * from './dtos/backoffice/segments/PopulationSegmentDefinition';
|
|
87
|
+
export * from './dtos/backoffice/segments/SegmentParam';
|
|
88
|
+
export * from './dtos/backoffice/segments/SegmentUsedColumn';
|
|
89
|
+
export * from './dtos/backoffice/segments/SegmentLastTest';
|
|
90
|
+
export * from './dtos/backoffice/segments/SegmentTestRequest';
|
|
91
|
+
export * from './dtos/backoffice/segments/SegmentTestResponse';
|
|
92
|
+
export * from './dtos/backoffice/segments/SegmentSaveRequest';
|
|
93
|
+
export * from './dtos/backoffice/segments/SegmentStatusRequest';
|
|
94
|
+
export * from './dtos/backoffice/segments/SegmentVersionResponse';
|
|
95
|
+
export * from './dtos/backoffice/segments/SegmentVersionSummaryResponse';
|
|
96
|
+
export * from './dtos/backoffice/segments/SegmentListResponse';
|
|
97
|
+
export * from './dtos/backoffice/segments/SegmentVersionListResponse';
|
|
98
|
+
export * from './dtos/backoffice/segments/SegmentSchemaResponse';
|
|
99
|
+
export * from './dtos/backoffice/segments/SegmentTableSchemaResponse';
|
|
100
|
+
export * from './dtos/backoffice/segments/SegmentUsedByResponse';
|
|
101
|
+
export * from './dtos/messages/PopulationPageMessage';
|
|
102
|
+
export * from './dtos/messages/EvaluateBatchMessage';
|
|
103
|
+
export * from './dtos/messages/GrantBatchMessage';
|
|
104
|
+
export * from './dtos/messages/ReleaseTrancheMessage';
|
|
105
|
+
export * from './dtos/backoffice/segments/PrivateSegmentResponse';
|
|
106
|
+
export * from './dtos/backoffice/segments/SegmentExecutionRequest';
|
|
107
|
+
export * from './dtos/backoffice/segments/SegmentExecutionResponse';
|
|
108
|
+
export * from './dtos/backoffice/segments/SegmentExecutionPageResponse';
|
|
109
|
+
export * from './dtos/backoffice/RunPopulationProgress';
|
|
@@ -90,3 +90,46 @@ __exportStar(require("./dtos/backoffice/MetricsPointResponse"), exports);
|
|
|
90
90
|
__exportStar(require("./dtos/backoffice/FailedConditionStatResponse"), exports);
|
|
91
91
|
__exportStar(require("./dtos/backoffice/FailedConditionEvaluationResponse"), exports);
|
|
92
92
|
__exportStar(require("./dtos/backoffice/MetricsQuery"), exports);
|
|
93
|
+
//Segmentos de poblacion (adenda 2026-10-12)
|
|
94
|
+
__exportStar(require("./enums/SegmentStatusEnum"), exports);
|
|
95
|
+
__exportStar(require("./enums/SegmentTestStatusEnum"), exports);
|
|
96
|
+
__exportStar(require("./enums/SegmentMatchEnum"), exports);
|
|
97
|
+
__exportStar(require("./enums/SegmentConditionKindEnum"), exports);
|
|
98
|
+
__exportStar(require("./enums/SegmentAggregateFnEnum"), exports);
|
|
99
|
+
__exportStar(require("./enums/SegmentOperatorEnum"), exports);
|
|
100
|
+
__exportStar(require("./enums/SegmentParamTypeEnum"), exports);
|
|
101
|
+
__exportStar(require("./enums/SegmentParamSourceEnum"), exports);
|
|
102
|
+
__exportStar(require("./enums/SegmentErrorCodeEnum"), exports);
|
|
103
|
+
__exportStar(require("./enums/EligibilityMessageTypeEnum"), exports);
|
|
104
|
+
__exportStar(require("./constants/SegmentLimits"), exports);
|
|
105
|
+
//Segmentos de poblacion: definicion del constructor (A2)
|
|
106
|
+
__exportStar(require("./dtos/backoffice/segments/SegmentWindow"), exports);
|
|
107
|
+
__exportStar(require("./dtos/backoffice/segments/SegmentColumnCondition"), exports);
|
|
108
|
+
__exportStar(require("./dtos/backoffice/segments/SegmentAggregateCondition"), exports);
|
|
109
|
+
__exportStar(require("./dtos/backoffice/segments/SegmentGroup"), exports);
|
|
110
|
+
__exportStar(require("./dtos/backoffice/segments/PopulationSegmentDefinition"), exports);
|
|
111
|
+
//Segmentos de poblacion: request/response del backoffice (A3)
|
|
112
|
+
__exportStar(require("./dtos/backoffice/segments/SegmentParam"), exports);
|
|
113
|
+
__exportStar(require("./dtos/backoffice/segments/SegmentUsedColumn"), exports);
|
|
114
|
+
__exportStar(require("./dtos/backoffice/segments/SegmentLastTest"), exports);
|
|
115
|
+
__exportStar(require("./dtos/backoffice/segments/SegmentTestRequest"), exports);
|
|
116
|
+
__exportStar(require("./dtos/backoffice/segments/SegmentTestResponse"), exports);
|
|
117
|
+
__exportStar(require("./dtos/backoffice/segments/SegmentSaveRequest"), exports);
|
|
118
|
+
__exportStar(require("./dtos/backoffice/segments/SegmentStatusRequest"), exports);
|
|
119
|
+
__exportStar(require("./dtos/backoffice/segments/SegmentVersionResponse"), exports);
|
|
120
|
+
__exportStar(require("./dtos/backoffice/segments/SegmentVersionSummaryResponse"), exports);
|
|
121
|
+
__exportStar(require("./dtos/backoffice/segments/SegmentListResponse"), exports);
|
|
122
|
+
__exportStar(require("./dtos/backoffice/segments/SegmentVersionListResponse"), exports);
|
|
123
|
+
__exportStar(require("./dtos/backoffice/segments/SegmentSchemaResponse"), exports);
|
|
124
|
+
__exportStar(require("./dtos/backoffice/segments/SegmentTableSchemaResponse"), exports);
|
|
125
|
+
__exportStar(require("./dtos/backoffice/segments/SegmentUsedByResponse"), exports);
|
|
126
|
+
//Segmentos de poblacion: mensajes SQS, endpoint privado y avance de corrida (A4)
|
|
127
|
+
__exportStar(require("./dtos/messages/PopulationPageMessage"), exports);
|
|
128
|
+
__exportStar(require("./dtos/messages/EvaluateBatchMessage"), exports);
|
|
129
|
+
__exportStar(require("./dtos/messages/GrantBatchMessage"), exports);
|
|
130
|
+
__exportStar(require("./dtos/messages/ReleaseTrancheMessage"), exports);
|
|
131
|
+
__exportStar(require("./dtos/backoffice/segments/PrivateSegmentResponse"), exports);
|
|
132
|
+
__exportStar(require("./dtos/backoffice/segments/SegmentExecutionRequest"), exports);
|
|
133
|
+
__exportStar(require("./dtos/backoffice/segments/SegmentExecutionResponse"), exports);
|
|
134
|
+
__exportStar(require("./dtos/backoffice/segments/SegmentExecutionPageResponse"), exports);
|
|
135
|
+
__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,5 +1,5 @@
|
|
|
1
1
|
import { Expose, Type } from 'class-transformer';
|
|
2
|
-
import { IsEnum, IsOptional, Matches, Validate
|
|
2
|
+
import { IsEnum, IsObject, IsOptional, Matches, Validate } from 'class-validator';
|
|
3
3
|
import { DynamicFormValue } from '../../../dynamicForm/types/DynamicFormValue';
|
|
4
4
|
import { IsDynamicFormValues } from '../../../dynamicForm/validators/IsDynamicFormValues';
|
|
5
5
|
import { REQUEST_ID_PATTERN } from '../../constants/BackofficeLimits';
|
|
@@ -24,7 +24,8 @@ export class CreateRunRequest {
|
|
|
24
24
|
|
|
25
25
|
@Expose()
|
|
26
26
|
@IsOptional()
|
|
27
|
-
|
|
27
|
+
// `PopulationRunRequest` no tiene campos: class-validator rechaza validar anidado una clase sin metadatos, por eso `@IsObject()`.
|
|
28
|
+
@IsObject()
|
|
28
29
|
@Type(() => PopulationRunRequest)
|
|
29
30
|
population?: PopulationRunRequest;
|
|
30
31
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Expose } from 'class-transformer';
|
|
2
|
-
import { ArrayMaxSize, ArrayMinSize, IsArray, IsNotEmpty, IsObject, IsString, Matches, MaxLength } from 'class-validator';
|
|
2
|
+
import { ArrayMaxSize, ArrayMinSize, IsArray, IsNotEmpty, IsObject, IsOptional, IsString, Matches, MaxLength } from 'class-validator';
|
|
3
3
|
import { JsonValue } from '../../../common';
|
|
4
4
|
import { InputField } from '../../../dynamicForm/dtos/InputField';
|
|
5
|
-
import { ELIGIBILITY_ID_PATTERN } from '../../constants/BackofficeLimits';
|
|
5
|
+
import { ELIGIBILITY_ID_PATTERN, INPUT_KEY_PATTERN } from '../../constants/BackofficeLimits';
|
|
6
6
|
import { EvaluationReward } from '../EvaluationReward';
|
|
7
7
|
import { EvaluationTrigger } from '../EvaluationTrigger';
|
|
8
8
|
import { GrantPolicy } from '../GrantPolicy';
|
|
@@ -66,4 +66,18 @@ export class EvaluationRequest {
|
|
|
66
66
|
@ArrayMaxSize(10)
|
|
67
67
|
@IsObject({ each: true })
|
|
68
68
|
triggers: EvaluationTrigger[];
|
|
69
|
+
|
|
70
|
+
/** Segmento de poblacion (version ACTIVE) que usan las corridas masivas de esta evaluacion. */
|
|
71
|
+
@Expose()
|
|
72
|
+
@IsOptional()
|
|
73
|
+
@IsString()
|
|
74
|
+
@Matches(ELIGIBILITY_ID_PATTERN)
|
|
75
|
+
populationSegmentId?: string;
|
|
76
|
+
|
|
77
|
+
/** Llave del input `DIRECTORY` que recibe el `directoryid` de cada persona del segmento. */
|
|
78
|
+
@Expose()
|
|
79
|
+
@IsOptional()
|
|
80
|
+
@IsString()
|
|
81
|
+
@Matches(INPUT_KEY_PATTERN)
|
|
82
|
+
populationInputKey?: string;
|
|
69
83
|
}
|
|
@@ -1,11 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
import { DynamicFormValue } from '../../../dynamicForm/types/DynamicFormValue';
|
|
4
|
-
import { IsDynamicFormValues } from '../../../dynamicForm/validators/IsDynamicFormValues';
|
|
5
|
-
|
|
6
|
-
/** Corrida por población (fase 4): los `params` de la fuente para esta corrida. El lambda de la fase 3 la rechaza con `POPULATION_RUN_NOT_SUPPORTED`. */
|
|
7
|
-
export class PopulationRunRequest {
|
|
8
|
-
@Expose()
|
|
9
|
-
@Validate(IsDynamicFormValues)
|
|
10
|
-
params: Record<string, DynamicFormValue>;
|
|
11
|
-
}
|
|
1
|
+
/** Sin override de params (A§7.3): cambiar la poblacion = version nueva del segmento. `population: {}` = "usa el segmento de la evaluacion". */
|
|
2
|
+
export class PopulationRunRequest {}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/** Avance de la corrida masiva: paginas, lotes y sujetos publicados. */
|
|
2
|
+
export class RunPopulationProgress {
|
|
3
|
+
pagesPublished: number;
|
|
4
|
+
batchesPublished: number;
|
|
5
|
+
subjectsPublished: number;
|
|
6
|
+
exhausted: boolean;
|
|
7
|
+
stoppedReason?: string;
|
|
8
|
+
lastAdvanceAt: number;
|
|
9
|
+
}
|