@fiado/type-kit 3.539.0 → 3.541.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/retailCustomer/ensureCustomerByPhoneRequest.test.ts +30 -0
- package/_test_/unit/retailWizard/accessorySaleRequests.test.ts +108 -0
- package/_test_/unit/retailWizard/cancelSaleConditions.test.ts +2 -1
- package/_test_/unit/retailWizard/portalCancelSaleRequest.test.ts +34 -0
- package/_test_/unit/rules/populationDtos.test.ts +58 -0
- package/_test_/unit/rules/populationMove.test.ts +31 -0
- package/bin/retailCustomer/dtos/requests/EnsureCustomerByPhoneRequest.d.ts +9 -0
- package/bin/retailCustomer/dtos/requests/EnsureCustomerByPhoneRequest.js +34 -0
- package/bin/retailCustomer/dtos/responses/EnsureCustomerByPhoneResponse.d.ts +5 -0
- package/bin/retailCustomer/dtos/responses/EnsureCustomerByPhoneResponse.js +2 -0
- package/bin/retailCustomer/index.d.ts +2 -0
- package/bin/retailCustomer/index.js +2 -0
- package/bin/retailWizard/dtos/AccessorySaleLine.d.ts +7 -0
- package/bin/retailWizard/dtos/AccessorySaleLine.js +38 -0
- package/bin/retailWizard/dtos/Sale.d.ts +5 -1
- package/bin/retailWizard/dtos/requests/CreateAccessorySaleRequest.d.ts +18 -0
- package/bin/retailWizard/dtos/requests/CreateAccessorySaleRequest.js +69 -0
- package/bin/retailWizard/dtos/requests/PortalCancelSaleRequest.d.ts +12 -0
- package/bin/retailWizard/dtos/requests/PortalCancelSaleRequest.js +43 -0
- package/bin/retailWizard/dtos/requests/SendAccessoryOtpRequest.d.ts +4 -0
- package/bin/retailWizard/dtos/requests/SendAccessoryOtpRequest.js +25 -0
- package/bin/retailWizard/dtos/requests/VerifyAccessoryOtpRequest.d.ts +4 -0
- package/bin/retailWizard/dtos/requests/VerifyAccessoryOtpRequest.js +24 -0
- package/bin/retailWizard/dtos/responses/AccessoryOtpChallenge.d.ts +7 -0
- package/bin/retailWizard/dtos/responses/AccessoryOtpChallenge.js +2 -0
- package/bin/retailWizard/dtos/responses/VerifyAccessoryOtpResponse.d.ts +7 -0
- package/bin/retailWizard/dtos/responses/VerifyAccessoryOtpResponse.js +2 -0
- package/bin/retailWizard/enums/SaleChannelEnum.d.ts +5 -0
- package/bin/retailWizard/enums/SaleChannelEnum.js +9 -0
- package/bin/retailWizard/index.d.ts +8 -0
- package/bin/retailWizard/index.js +8 -0
- package/bin/rewardsEligibility/constants/SegmentLimits.d.ts +1 -5
- package/bin/rewardsEligibility/constants/SegmentLimits.js +15 -6
- package/bin/rewardsEligibility/dtos/backoffice/segments/PopulationSegmentDefinition.d.ts +1 -8
- package/bin/rewardsEligibility/dtos/backoffice/segments/PopulationSegmentDefinition.js +14 -37
- package/bin/rewardsEligibility/dtos/backoffice/segments/SegmentAggregateCondition.d.ts +1 -18
- package/bin/rewardsEligibility/dtos/backoffice/segments/SegmentAggregateCondition.js +14 -68
- package/bin/rewardsEligibility/dtos/backoffice/segments/SegmentColumnCondition.d.ts +1 -11
- package/bin/rewardsEligibility/dtos/backoffice/segments/SegmentColumnCondition.js +14 -43
- package/bin/rewardsEligibility/dtos/backoffice/segments/SegmentGroup.d.ts +1 -9
- package/bin/rewardsEligibility/dtos/backoffice/segments/SegmentGroup.js +14 -41
- package/bin/rewardsEligibility/dtos/backoffice/segments/SegmentParam.d.ts +1 -10
- package/bin/rewardsEligibility/dtos/backoffice/segments/SegmentParam.js +15 -5
- package/bin/rewardsEligibility/dtos/backoffice/segments/SegmentSchemaResponse.d.ts +1 -10
- package/bin/rewardsEligibility/dtos/backoffice/segments/SegmentSchemaResponse.js +15 -8
- package/bin/rewardsEligibility/dtos/backoffice/segments/SegmentTableSchemaResponse.d.ts +1 -12
- package/bin/rewardsEligibility/dtos/backoffice/segments/SegmentTableSchemaResponse.js +15 -7
- package/bin/rewardsEligibility/dtos/backoffice/segments/SegmentUsedColumn.d.ts +1 -5
- package/bin/rewardsEligibility/dtos/backoffice/segments/SegmentUsedColumn.js +15 -4
- package/bin/rewardsEligibility/dtos/backoffice/segments/SegmentWindow.d.ts +1 -5
- package/bin/rewardsEligibility/dtos/backoffice/segments/SegmentWindow.js +14 -28
- package/bin/rewardsEligibility/enums/SegmentAggregateFnEnum.d.ts +1 -5
- package/bin/rewardsEligibility/enums/SegmentAggregateFnEnum.js +15 -7
- package/bin/rewardsEligibility/enums/SegmentConditionKindEnum.d.ts +1 -4
- package/bin/rewardsEligibility/enums/SegmentConditionKindEnum.js +15 -6
- package/bin/rewardsEligibility/enums/SegmentMatchEnum.d.ts +1 -4
- package/bin/rewardsEligibility/enums/SegmentMatchEnum.js +15 -6
- package/bin/rewardsEligibility/enums/SegmentOperatorEnum.d.ts +1 -16
- package/bin/rewardsEligibility/enums/SegmentOperatorEnum.js +15 -18
- package/bin/rewardsEligibility/enums/SegmentParamSourceEnum.d.ts +1 -5
- package/bin/rewardsEligibility/enums/SegmentParamSourceEnum.js +15 -7
- package/bin/rewardsEligibility/enums/SegmentParamTypeEnum.d.ts +1 -7
- package/bin/rewardsEligibility/enums/SegmentParamTypeEnum.js +15 -9
- package/bin/rules/constants/SegmentLimits.d.ts +5 -0
- package/bin/rules/constants/SegmentLimits.js +8 -0
- package/bin/rules/dtos/population/PopulationCompileRequest.d.ts +6 -0
- package/bin/rules/dtos/population/PopulationCompileRequest.js +32 -0
- package/bin/rules/dtos/population/PopulationCompileResponse.d.ts +9 -0
- package/bin/rules/dtos/population/PopulationCompileResponse.js +6 -0
- package/bin/rules/dtos/population/PopulationExecutionPageResponse.d.ts +10 -0
- package/bin/rules/dtos/population/PopulationExecutionPageResponse.js +7 -0
- package/bin/rules/dtos/population/PopulationExecutionRequest.d.ts +10 -0
- package/bin/rules/dtos/population/PopulationExecutionRequest.js +59 -0
- package/bin/rules/dtos/population/PopulationExecutionResponse.d.ts +5 -0
- package/bin/rules/dtos/population/PopulationExecutionResponse.js +6 -0
- package/bin/rules/dtos/population/PopulationSegmentDefinition.d.ts +8 -0
- package/bin/rules/dtos/population/PopulationSegmentDefinition.js +40 -0
- package/bin/rules/dtos/population/PopulationTestRequest.d.ts +7 -0
- package/bin/rules/dtos/population/PopulationTestRequest.js +38 -0
- package/bin/rules/dtos/population/PopulationTestResponse.d.ts +26 -0
- package/bin/rules/dtos/population/PopulationTestResponse.js +13 -0
- package/bin/rules/dtos/population/SegmentAggregateCondition.d.ts +18 -0
- package/bin/rules/dtos/population/SegmentAggregateCondition.js +71 -0
- package/bin/rules/dtos/population/SegmentColumnCondition.d.ts +11 -0
- package/bin/rules/dtos/population/SegmentColumnCondition.js +46 -0
- package/bin/rules/dtos/population/SegmentGroup.d.ts +9 -0
- package/bin/rules/dtos/population/SegmentGroup.js +44 -0
- package/bin/rules/dtos/population/SegmentParam.d.ts +10 -0
- package/bin/rules/dtos/population/SegmentParam.js +7 -0
- package/bin/rules/dtos/population/SegmentSchemaResponse.d.ts +10 -0
- package/bin/rules/dtos/population/SegmentSchemaResponse.js +10 -0
- package/bin/rules/dtos/population/SegmentTableSchemaResponse.d.ts +12 -0
- package/bin/rules/dtos/population/SegmentTableSchemaResponse.js +9 -0
- package/bin/rules/dtos/population/SegmentUsedColumn.d.ts +5 -0
- package/bin/rules/dtos/population/SegmentUsedColumn.js +6 -0
- package/bin/rules/dtos/population/SegmentWindow.d.ts +5 -0
- package/bin/rules/dtos/population/SegmentWindow.js +31 -0
- package/bin/rules/enums/PopulationErrorCodeEnum.d.ts +12 -0
- package/bin/rules/enums/PopulationErrorCodeEnum.js +16 -0
- package/bin/rules/enums/PopulationExecutionStatusEnum.d.ts +6 -0
- package/bin/rules/enums/PopulationExecutionStatusEnum.js +10 -0
- package/bin/rules/enums/PopulationTestStatusEnum.d.ts +5 -0
- package/bin/rules/enums/PopulationTestStatusEnum.js +9 -0
- package/bin/rules/enums/SegmentAggregateFnEnum.d.ts +5 -0
- package/bin/rules/enums/SegmentAggregateFnEnum.js +9 -0
- package/bin/rules/enums/SegmentConditionKindEnum.d.ts +4 -0
- package/bin/rules/enums/SegmentConditionKindEnum.js +8 -0
- package/bin/rules/enums/SegmentMatchEnum.d.ts +4 -0
- package/bin/rules/enums/SegmentMatchEnum.js +8 -0
- package/bin/rules/enums/SegmentOperatorEnum.d.ts +16 -0
- package/bin/rules/enums/SegmentOperatorEnum.js +20 -0
- package/bin/rules/enums/SegmentParamSourceEnum.d.ts +5 -0
- package/bin/rules/enums/SegmentParamSourceEnum.js +9 -0
- package/bin/rules/enums/SegmentParamTypeEnum.d.ts +7 -0
- package/bin/rules/enums/SegmentParamTypeEnum.js +11 -0
- package/bin/rules/index.d.ts +26 -0
- package/bin/rules/index.js +28 -0
- package/package.json +1 -1
- package/src/retailCustomer/dtos/requests/EnsureCustomerByPhoneRequest.ts +20 -0
- package/src/retailCustomer/dtos/responses/EnsureCustomerByPhoneResponse.ts +6 -0
- package/src/retailCustomer/index.ts +2 -0
- package/src/retailWizard/dtos/AccessorySaleLine.ts +23 -0
- package/src/retailWizard/dtos/Sale.ts +5 -1
- package/src/retailWizard/dtos/requests/CreateAccessorySaleRequest.ts +64 -0
- package/src/retailWizard/dtos/requests/PortalCancelSaleRequest.ts +29 -0
- package/src/retailWizard/dtos/requests/SendAccessoryOtpRequest.ts +11 -0
- package/src/retailWizard/dtos/requests/VerifyAccessoryOtpRequest.ts +10 -0
- package/src/retailWizard/dtos/responses/AccessoryOtpChallenge.ts +7 -0
- package/src/retailWizard/dtos/responses/VerifyAccessoryOtpResponse.ts +7 -0
- package/src/retailWizard/enums/SaleChannelEnum.ts +5 -0
- package/src/retailWizard/index.ts +8 -0
- package/src/rewardsEligibility/constants/SegmentLimits.ts +1 -5
- package/src/rewardsEligibility/dtos/backoffice/segments/PopulationSegmentDefinition.ts +1 -12
- package/src/rewardsEligibility/dtos/backoffice/segments/SegmentAggregateCondition.ts +1 -22
- package/src/rewardsEligibility/dtos/backoffice/segments/SegmentColumnCondition.ts +1 -15
- package/src/rewardsEligibility/dtos/backoffice/segments/SegmentGroup.ts +1 -27
- package/src/rewardsEligibility/dtos/backoffice/segments/SegmentParam.ts +1 -11
- package/src/rewardsEligibility/dtos/backoffice/segments/SegmentSchemaResponse.ts +1 -11
- package/src/rewardsEligibility/dtos/backoffice/segments/SegmentTableSchemaResponse.ts +1 -14
- package/src/rewardsEligibility/dtos/backoffice/segments/SegmentUsedColumn.ts +1 -5
- package/src/rewardsEligibility/dtos/backoffice/segments/SegmentWindow.ts +1 -9
- package/src/rewardsEligibility/enums/SegmentAggregateFnEnum.ts +1 -5
- package/src/rewardsEligibility/enums/SegmentConditionKindEnum.ts +1 -4
- package/src/rewardsEligibility/enums/SegmentMatchEnum.ts +1 -4
- package/src/rewardsEligibility/enums/SegmentOperatorEnum.ts +1 -16
- package/src/rewardsEligibility/enums/SegmentParamSourceEnum.ts +1 -5
- package/src/rewardsEligibility/enums/SegmentParamTypeEnum.ts +1 -7
- package/src/rules/constants/SegmentLimits.ts +5 -0
- package/src/rules/dtos/population/PopulationCompileRequest.ts +9 -0
- package/src/rules/dtos/population/PopulationCompileResponse.ts +10 -0
- package/src/rules/dtos/population/PopulationExecutionPageResponse.ts +11 -0
- package/src/rules/dtos/population/PopulationExecutionRequest.ts +13 -0
- package/src/rules/dtos/population/PopulationExecutionResponse.ts +6 -0
- package/src/rules/dtos/population/PopulationSegmentDefinition.ts +12 -0
- package/src/rules/dtos/population/PopulationTestRequest.ts +10 -0
- package/src/rules/dtos/population/PopulationTestResponse.ts +29 -0
- package/src/rules/dtos/population/SegmentAggregateCondition.ts +22 -0
- package/src/rules/dtos/population/SegmentColumnCondition.ts +15 -0
- package/src/rules/dtos/population/SegmentGroup.ts +27 -0
- package/src/rules/dtos/population/SegmentParam.ts +11 -0
- package/src/rules/dtos/population/SegmentSchemaResponse.ts +11 -0
- package/src/rules/dtos/population/SegmentTableSchemaResponse.ts +14 -0
- package/src/rules/dtos/population/SegmentUsedColumn.ts +5 -0
- package/src/rules/dtos/population/SegmentWindow.ts +9 -0
- package/src/rules/enums/PopulationErrorCodeEnum.ts +12 -0
- package/src/rules/enums/PopulationExecutionStatusEnum.ts +6 -0
- package/src/rules/enums/PopulationTestStatusEnum.ts +5 -0
- package/src/rules/enums/SegmentAggregateFnEnum.ts +5 -0
- package/src/rules/enums/SegmentConditionKindEnum.ts +4 -0
- package/src/rules/enums/SegmentMatchEnum.ts +4 -0
- package/src/rules/enums/SegmentOperatorEnum.ts +16 -0
- package/src/rules/enums/SegmentParamSourceEnum.ts +5 -0
- package/src/rules/enums/SegmentParamTypeEnum.ts +7 -0
- package/src/rules/index.ts +30 -0
|
@@ -0,0 +1,24 @@
|
|
|
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.VerifyAccessoryOtpRequest = void 0;
|
|
13
|
+
const class_transformer_1 = require("class-transformer");
|
|
14
|
+
const class_validator_1 = require("class-validator");
|
|
15
|
+
/** POST /wizard/accessory-sales/otp/{otpChallengeId}/verify — código que dicta el cliente. */
|
|
16
|
+
class VerifyAccessoryOtpRequest {
|
|
17
|
+
}
|
|
18
|
+
exports.VerifyAccessoryOtpRequest = VerifyAccessoryOtpRequest;
|
|
19
|
+
__decorate([
|
|
20
|
+
(0, class_transformer_1.Expose)(),
|
|
21
|
+
(0, class_validator_1.IsString)(),
|
|
22
|
+
(0, class_validator_1.Length)(4, 8),
|
|
23
|
+
__metadata("design:type", String)
|
|
24
|
+
], VerifyAccessoryOtpRequest.prototype, "code", void 0);
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SaleChannelEnum = void 0;
|
|
4
|
+
/** Canal por el que se cerró la venta: el wizard por sesión o el mostrador de accesorios. */
|
|
5
|
+
var SaleChannelEnum;
|
|
6
|
+
(function (SaleChannelEnum) {
|
|
7
|
+
SaleChannelEnum["WIZARD"] = "WIZARD";
|
|
8
|
+
SaleChannelEnum["ACCESSORY_COUNTER"] = "ACCESSORY_COUNTER";
|
|
9
|
+
})(SaleChannelEnum || (exports.SaleChannelEnum = SaleChannelEnum = {}));
|
|
@@ -29,6 +29,7 @@ export * from './enums/WizardLineStatusEnum';
|
|
|
29
29
|
export * from './enums/LinePaymentTypeEnum';
|
|
30
30
|
export * from './enums/WizardLineRoleEnum';
|
|
31
31
|
export * from './enums/EmailStateEnum';
|
|
32
|
+
export * from './enums/SaleChannelEnum';
|
|
32
33
|
export * from './dtos/WizardConsents';
|
|
33
34
|
export * from './dtos/WizardPayment';
|
|
34
35
|
export * from './dtos/WizardProduct';
|
|
@@ -52,6 +53,7 @@ export * from './dtos/WizardFinancingPreview';
|
|
|
52
53
|
export * from './dtos/WizardReservedLine';
|
|
53
54
|
export * from './dtos/WizardGiftLine';
|
|
54
55
|
export * from './dtos/SaleLine';
|
|
56
|
+
export * from './dtos/AccessorySaleLine';
|
|
55
57
|
export * from './dtos/WizardSession';
|
|
56
58
|
export * from './dtos/OtpVerification';
|
|
57
59
|
export * from './dtos/Sale';
|
|
@@ -97,6 +99,9 @@ export * from './dtos/requests/CompleteSaleRequest';
|
|
|
97
99
|
export * from './dtos/requests/SuggestIdentifiersQuery';
|
|
98
100
|
export * from './dtos/requests/SendEmailOtpRequest';
|
|
99
101
|
export * from './dtos/requests/VerifyEmailOtpRequest';
|
|
102
|
+
export * from './dtos/requests/SendAccessoryOtpRequest';
|
|
103
|
+
export * from './dtos/requests/VerifyAccessoryOtpRequest';
|
|
104
|
+
export * from './dtos/requests/CreateAccessorySaleRequest';
|
|
100
105
|
export * from './dtos/responses/KycPrepareResponse';
|
|
101
106
|
export * from './dtos/responses/ProofOfAddressPrepareResponse';
|
|
102
107
|
export * from './dtos/responses/SessionFinanciersResponse';
|
|
@@ -115,6 +120,8 @@ export * from './dtos/responses/ProspectResumeResponse';
|
|
|
115
120
|
export * from './dtos/responses/CancelOtherStoreSaleResponse';
|
|
116
121
|
export * from './dtos/responses/ProspectByPhoneResponse';
|
|
117
122
|
export * from './dtos/responses/AppOnboardingResponse';
|
|
123
|
+
export * from './dtos/responses/AccessoryOtpChallenge';
|
|
124
|
+
export * from './dtos/responses/VerifyAccessoryOtpResponse';
|
|
118
125
|
export * from './enums/SaleFinancierEnum';
|
|
119
126
|
export * from './enums/SaleExceptionTypeEnum';
|
|
120
127
|
export * from './enums/SaleExceptionStatusEnum';
|
|
@@ -138,6 +145,7 @@ export * from './dtos/requests/ApplySaleExceptionRequest';
|
|
|
138
145
|
export * from './dtos/requests/AddSaleExceptionNoteRequest';
|
|
139
146
|
export * from './dtos/requests/RunSalesReportRequest';
|
|
140
147
|
export * from './dtos/requests/BackofficeCancelSaleRequest';
|
|
148
|
+
export * from './dtos/requests/PortalCancelSaleRequest';
|
|
141
149
|
export * from './dtos/responses/BackofficeSalesStatsResponse';
|
|
142
150
|
export * from './dtos/responses/BackofficeSalesKpisResponse';
|
|
143
151
|
export * from './dtos/responses/BackofficeReportsResponse';
|
|
@@ -48,6 +48,7 @@ __exportStar(require("./enums/WizardLineStatusEnum"), exports);
|
|
|
48
48
|
__exportStar(require("./enums/LinePaymentTypeEnum"), exports);
|
|
49
49
|
__exportStar(require("./enums/WizardLineRoleEnum"), exports);
|
|
50
50
|
__exportStar(require("./enums/EmailStateEnum"), exports);
|
|
51
|
+
__exportStar(require("./enums/SaleChannelEnum"), exports);
|
|
51
52
|
// DTOs anidados
|
|
52
53
|
__exportStar(require("./dtos/WizardConsents"), exports);
|
|
53
54
|
__exportStar(require("./dtos/WizardPayment"), exports);
|
|
@@ -74,6 +75,7 @@ __exportStar(require("./dtos/WizardFinancingPreview"), exports);
|
|
|
74
75
|
__exportStar(require("./dtos/WizardReservedLine"), exports);
|
|
75
76
|
__exportStar(require("./dtos/WizardGiftLine"), exports);
|
|
76
77
|
__exportStar(require("./dtos/SaleLine"), exports);
|
|
78
|
+
__exportStar(require("./dtos/AccessorySaleLine"), exports);
|
|
77
79
|
// Entidades principales (shapes de estado/persistencia — planas)
|
|
78
80
|
__exportStar(require("./dtos/WizardSession"), exports);
|
|
79
81
|
__exportStar(require("./dtos/OtpVerification"), exports);
|
|
@@ -122,6 +124,9 @@ __exportStar(require("./dtos/requests/CompleteSaleRequest"), exports);
|
|
|
122
124
|
__exportStar(require("./dtos/requests/SuggestIdentifiersQuery"), exports);
|
|
123
125
|
__exportStar(require("./dtos/requests/SendEmailOtpRequest"), exports);
|
|
124
126
|
__exportStar(require("./dtos/requests/VerifyEmailOtpRequest"), exports);
|
|
127
|
+
__exportStar(require("./dtos/requests/SendAccessoryOtpRequest"), exports);
|
|
128
|
+
__exportStar(require("./dtos/requests/VerifyAccessoryOtpRequest"), exports);
|
|
129
|
+
__exportStar(require("./dtos/requests/CreateAccessorySaleRequest"), exports);
|
|
125
130
|
// Response DTOs (output tipado por endpoint)
|
|
126
131
|
__exportStar(require("./dtos/responses/KycPrepareResponse"), exports);
|
|
127
132
|
__exportStar(require("./dtos/responses/ProofOfAddressPrepareResponse"), exports);
|
|
@@ -141,6 +146,8 @@ __exportStar(require("./dtos/responses/ProspectResumeResponse"), exports);
|
|
|
141
146
|
__exportStar(require("./dtos/responses/CancelOtherStoreSaleResponse"), exports);
|
|
142
147
|
__exportStar(require("./dtos/responses/ProspectByPhoneResponse"), exports);
|
|
143
148
|
__exportStar(require("./dtos/responses/AppOnboardingResponse"), exports);
|
|
149
|
+
__exportStar(require("./dtos/responses/AccessoryOtpChallenge"), exports);
|
|
150
|
+
__exportStar(require("./dtos/responses/VerifyAccessoryOtpResponse"), exports);
|
|
144
151
|
// ── F3 · Backoffice VentasLuga ────────────────────────────────────────────────
|
|
145
152
|
// Enums
|
|
146
153
|
__exportStar(require("./enums/SaleFinancierEnum"), exports);
|
|
@@ -169,6 +176,7 @@ __exportStar(require("./dtos/requests/ApplySaleExceptionRequest"), exports);
|
|
|
169
176
|
__exportStar(require("./dtos/requests/AddSaleExceptionNoteRequest"), exports);
|
|
170
177
|
__exportStar(require("./dtos/requests/RunSalesReportRequest"), exports);
|
|
171
178
|
__exportStar(require("./dtos/requests/BackofficeCancelSaleRequest"), exports);
|
|
179
|
+
__exportStar(require("./dtos/requests/PortalCancelSaleRequest"), exports);
|
|
172
180
|
// Responses
|
|
173
181
|
__exportStar(require("./dtos/responses/BackofficeSalesStatsResponse"), exports);
|
|
174
182
|
__exportStar(require("./dtos/responses/BackofficeSalesKpisResponse"), exports);
|
|
@@ -1,5 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const SEGMENT_IDENTIFIER_PATTERN: RegExp;
|
|
3
|
-
export declare const SEGMENT_MAX_DAYS = 365;
|
|
4
|
-
export declare const SEGMENT_MAX_PARAMS = 40;
|
|
5
|
-
export declare const SEGMENT_MAX_AGGREGATES = 8;
|
|
1
|
+
export * from '../../rules/constants/SegmentLimits';
|
|
@@ -1,8 +1,17 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
2
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
|
|
4
|
-
/** Identificador SQL permitido para tabla/columna (A§4.3 paso 1): minusculas, digitos y guion bajo; nunca texto libre. */
|
|
5
|
-
exports.SEGMENT_IDENTIFIER_PATTERN = /^[a-z_][a-z0-9_]*$/;
|
|
6
|
-
exports.SEGMENT_MAX_DAYS = 365;
|
|
7
|
-
exports.SEGMENT_MAX_PARAMS = 40;
|
|
8
|
-
exports.SEGMENT_MAX_AGGREGATES = 8;
|
|
17
|
+
__exportStar(require("../../rules/constants/SegmentLimits"), exports);
|
|
@@ -1,8 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import { SegmentGroup } from './SegmentGroup';
|
|
3
|
-
/** El constructor tal cual (A§4.1): tabla ancla (una fila -> un directoryid), TODAS/ALGUNA global y grupos con su propio TODAS/ALGUNA. */
|
|
4
|
-
export declare class PopulationSegmentDefinition {
|
|
5
|
-
baseTable: string;
|
|
6
|
-
match: SegmentMatchEnum;
|
|
7
|
-
groups: SegmentGroup[];
|
|
8
|
-
}
|
|
1
|
+
export * from '../../../../rules/dtos/population/PopulationSegmentDefinition';
|
|
@@ -1,40 +1,17 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
10
15
|
};
|
|
11
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
|
|
13
|
-
const class_transformer_1 = require("class-transformer");
|
|
14
|
-
const class_validator_1 = require("class-validator");
|
|
15
|
-
const SegmentLimits_1 = require("../../../constants/SegmentLimits");
|
|
16
|
-
const SegmentMatchEnum_1 = require("../../../enums/SegmentMatchEnum");
|
|
17
|
-
const SegmentGroup_1 = require("./SegmentGroup");
|
|
18
|
-
/** El constructor tal cual (A§4.1): tabla ancla (una fila -> un directoryid), TODAS/ALGUNA global y grupos con su propio TODAS/ALGUNA. */
|
|
19
|
-
class PopulationSegmentDefinition {
|
|
20
|
-
}
|
|
21
|
-
exports.PopulationSegmentDefinition = PopulationSegmentDefinition;
|
|
22
|
-
__decorate([
|
|
23
|
-
(0, class_transformer_1.Expose)(),
|
|
24
|
-
(0, class_validator_1.Matches)(SegmentLimits_1.SEGMENT_IDENTIFIER_PATTERN),
|
|
25
|
-
__metadata("design:type", String)
|
|
26
|
-
], PopulationSegmentDefinition.prototype, "baseTable", void 0);
|
|
27
|
-
__decorate([
|
|
28
|
-
(0, class_transformer_1.Expose)(),
|
|
29
|
-
(0, class_validator_1.IsEnum)(SegmentMatchEnum_1.SegmentMatchEnum),
|
|
30
|
-
__metadata("design:type", String)
|
|
31
|
-
], PopulationSegmentDefinition.prototype, "match", void 0);
|
|
32
|
-
__decorate([
|
|
33
|
-
(0, class_transformer_1.Expose)(),
|
|
34
|
-
(0, class_validator_1.IsArray)(),
|
|
35
|
-
(0, class_validator_1.ArrayMinSize)(1),
|
|
36
|
-
(0, class_validator_1.ArrayMaxSize)(10),
|
|
37
|
-
(0, class_validator_1.ValidateNested)({ each: true }),
|
|
38
|
-
(0, class_transformer_1.Type)(() => SegmentGroup_1.SegmentGroup),
|
|
39
|
-
__metadata("design:type", Array)
|
|
40
|
-
], PopulationSegmentDefinition.prototype, "groups", void 0);
|
|
17
|
+
__exportStar(require("../../../../rules/dtos/population/PopulationSegmentDefinition"), exports);
|
|
@@ -1,18 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import { SegmentConditionKindEnum } from '../../../enums/SegmentConditionKindEnum';
|
|
3
|
-
import { SegmentOperatorEnum } from '../../../enums/SegmentOperatorEnum';
|
|
4
|
-
import { SegmentColumnCondition } from './SegmentColumnCondition';
|
|
5
|
-
import { SegmentWindow } from './SegmentWindow';
|
|
6
|
-
/** (b) Agregado con ventana relativa sobre una tabla relacionada (existe / cuenta / suma). `filters` elige QUE cuenta (estados, moneda...). */
|
|
7
|
-
export declare class SegmentAggregateCondition {
|
|
8
|
-
kind: SegmentConditionKindEnum.AGGREGATE;
|
|
9
|
-
table: string;
|
|
10
|
-
fn: SegmentAggregateFnEnum;
|
|
11
|
-
/** Solo SUM. */
|
|
12
|
-
column?: string;
|
|
13
|
-
/** COUNT y SUM; EXISTS no lleva. */
|
|
14
|
-
op?: SegmentOperatorEnum;
|
|
15
|
-
value?: number;
|
|
16
|
-
window: SegmentWindow;
|
|
17
|
-
filters: SegmentColumnCondition[];
|
|
18
|
-
}
|
|
1
|
+
export * from '../../../../rules/dtos/population/SegmentAggregateCondition';
|
|
@@ -1,71 +1,17 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
10
15
|
};
|
|
11
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
|
|
13
|
-
const class_transformer_1 = require("class-transformer");
|
|
14
|
-
const class_validator_1 = require("class-validator");
|
|
15
|
-
const SegmentLimits_1 = require("../../../constants/SegmentLimits");
|
|
16
|
-
const SegmentAggregateFnEnum_1 = require("../../../enums/SegmentAggregateFnEnum");
|
|
17
|
-
const SegmentConditionKindEnum_1 = require("../../../enums/SegmentConditionKindEnum");
|
|
18
|
-
const SegmentOperatorEnum_1 = require("../../../enums/SegmentOperatorEnum");
|
|
19
|
-
const SegmentColumnCondition_1 = require("./SegmentColumnCondition");
|
|
20
|
-
const SegmentWindow_1 = require("./SegmentWindow");
|
|
21
|
-
/** (b) Agregado con ventana relativa sobre una tabla relacionada (existe / cuenta / suma). `filters` elige QUE cuenta (estados, moneda...). */
|
|
22
|
-
class SegmentAggregateCondition {
|
|
23
|
-
}
|
|
24
|
-
exports.SegmentAggregateCondition = SegmentAggregateCondition;
|
|
25
|
-
__decorate([
|
|
26
|
-
(0, class_transformer_1.Expose)(),
|
|
27
|
-
(0, class_validator_1.Equals)(SegmentConditionKindEnum_1.SegmentConditionKindEnum.AGGREGATE),
|
|
28
|
-
__metadata("design:type", String)
|
|
29
|
-
], SegmentAggregateCondition.prototype, "kind", void 0);
|
|
30
|
-
__decorate([
|
|
31
|
-
(0, class_transformer_1.Expose)(),
|
|
32
|
-
(0, class_validator_1.Matches)(SegmentLimits_1.SEGMENT_IDENTIFIER_PATTERN),
|
|
33
|
-
__metadata("design:type", String)
|
|
34
|
-
], SegmentAggregateCondition.prototype, "table", void 0);
|
|
35
|
-
__decorate([
|
|
36
|
-
(0, class_transformer_1.Expose)(),
|
|
37
|
-
(0, class_validator_1.IsEnum)(SegmentAggregateFnEnum_1.SegmentAggregateFnEnum),
|
|
38
|
-
__metadata("design:type", String)
|
|
39
|
-
], SegmentAggregateCondition.prototype, "fn", void 0);
|
|
40
|
-
__decorate([
|
|
41
|
-
(0, class_transformer_1.Expose)(),
|
|
42
|
-
(0, class_validator_1.IsOptional)(),
|
|
43
|
-
(0, class_validator_1.Matches)(SegmentLimits_1.SEGMENT_IDENTIFIER_PATTERN),
|
|
44
|
-
__metadata("design:type", String)
|
|
45
|
-
], SegmentAggregateCondition.prototype, "column", void 0);
|
|
46
|
-
__decorate([
|
|
47
|
-
(0, class_transformer_1.Expose)(),
|
|
48
|
-
(0, class_validator_1.IsOptional)(),
|
|
49
|
-
(0, class_validator_1.IsEnum)(SegmentOperatorEnum_1.SegmentOperatorEnum),
|
|
50
|
-
__metadata("design:type", String)
|
|
51
|
-
], SegmentAggregateCondition.prototype, "op", void 0);
|
|
52
|
-
__decorate([
|
|
53
|
-
(0, class_transformer_1.Expose)(),
|
|
54
|
-
(0, class_validator_1.IsOptional)(),
|
|
55
|
-
(0, class_validator_1.IsNumber)(),
|
|
56
|
-
__metadata("design:type", Number)
|
|
57
|
-
], SegmentAggregateCondition.prototype, "value", void 0);
|
|
58
|
-
__decorate([
|
|
59
|
-
(0, class_transformer_1.Expose)(),
|
|
60
|
-
(0, class_validator_1.ValidateNested)(),
|
|
61
|
-
(0, class_transformer_1.Type)(() => SegmentWindow_1.SegmentWindow),
|
|
62
|
-
__metadata("design:type", SegmentWindow_1.SegmentWindow)
|
|
63
|
-
], SegmentAggregateCondition.prototype, "window", void 0);
|
|
64
|
-
__decorate([
|
|
65
|
-
(0, class_transformer_1.Expose)(),
|
|
66
|
-
(0, class_validator_1.IsArray)(),
|
|
67
|
-
(0, class_validator_1.ArrayMaxSize)(10),
|
|
68
|
-
(0, class_validator_1.ValidateNested)({ each: true }),
|
|
69
|
-
(0, class_transformer_1.Type)(() => SegmentColumnCondition_1.SegmentColumnCondition),
|
|
70
|
-
__metadata("design:type", Array)
|
|
71
|
-
], SegmentAggregateCondition.prototype, "filters", void 0);
|
|
17
|
+
__exportStar(require("../../../../rules/dtos/population/SegmentAggregateCondition"), exports);
|
|
@@ -1,11 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import { SegmentConditionKindEnum } from '../../../enums/SegmentConditionKindEnum';
|
|
3
|
-
import { SegmentOperatorEnum } from '../../../enums/SegmentOperatorEnum';
|
|
4
|
-
/** (a) Columna de una tabla unida por `directoryid`. El tipo de `value` (escalar, lista o `{days}`) lo valida el compilador contra el tipo de Glue. */
|
|
5
|
-
export declare class SegmentColumnCondition {
|
|
6
|
-
kind: SegmentConditionKindEnum.COLUMN;
|
|
7
|
-
table: string;
|
|
8
|
-
column: string;
|
|
9
|
-
op: SegmentOperatorEnum;
|
|
10
|
-
value?: JsonValue;
|
|
11
|
-
}
|
|
1
|
+
export * from '../../../../rules/dtos/population/SegmentColumnCondition';
|
|
@@ -1,46 +1,17 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
10
15
|
};
|
|
11
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
|
|
13
|
-
const class_transformer_1 = require("class-transformer");
|
|
14
|
-
const class_validator_1 = require("class-validator");
|
|
15
|
-
const SegmentLimits_1 = require("../../../constants/SegmentLimits");
|
|
16
|
-
const SegmentConditionKindEnum_1 = require("../../../enums/SegmentConditionKindEnum");
|
|
17
|
-
const SegmentOperatorEnum_1 = require("../../../enums/SegmentOperatorEnum");
|
|
18
|
-
/** (a) Columna de una tabla unida por `directoryid`. El tipo de `value` (escalar, lista o `{days}`) lo valida el compilador contra el tipo de Glue. */
|
|
19
|
-
class SegmentColumnCondition {
|
|
20
|
-
}
|
|
21
|
-
exports.SegmentColumnCondition = SegmentColumnCondition;
|
|
22
|
-
__decorate([
|
|
23
|
-
(0, class_transformer_1.Expose)(),
|
|
24
|
-
(0, class_validator_1.Equals)(SegmentConditionKindEnum_1.SegmentConditionKindEnum.COLUMN),
|
|
25
|
-
__metadata("design:type", String)
|
|
26
|
-
], SegmentColumnCondition.prototype, "kind", void 0);
|
|
27
|
-
__decorate([
|
|
28
|
-
(0, class_transformer_1.Expose)(),
|
|
29
|
-
(0, class_validator_1.Matches)(SegmentLimits_1.SEGMENT_IDENTIFIER_PATTERN),
|
|
30
|
-
__metadata("design:type", String)
|
|
31
|
-
], SegmentColumnCondition.prototype, "table", void 0);
|
|
32
|
-
__decorate([
|
|
33
|
-
(0, class_transformer_1.Expose)(),
|
|
34
|
-
(0, class_validator_1.Matches)(SegmentLimits_1.SEGMENT_IDENTIFIER_PATTERN),
|
|
35
|
-
__metadata("design:type", String)
|
|
36
|
-
], SegmentColumnCondition.prototype, "column", void 0);
|
|
37
|
-
__decorate([
|
|
38
|
-
(0, class_transformer_1.Expose)(),
|
|
39
|
-
(0, class_validator_1.IsEnum)(SegmentOperatorEnum_1.SegmentOperatorEnum),
|
|
40
|
-
__metadata("design:type", String)
|
|
41
|
-
], SegmentColumnCondition.prototype, "op", void 0);
|
|
42
|
-
__decorate([
|
|
43
|
-
(0, class_transformer_1.Expose)(),
|
|
44
|
-
(0, class_validator_1.IsOptional)(),
|
|
45
|
-
__metadata("design:type", Object)
|
|
46
|
-
], SegmentColumnCondition.prototype, "value", void 0);
|
|
17
|
+
__exportStar(require("../../../../rules/dtos/population/SegmentColumnCondition"), exports);
|
|
@@ -1,9 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import { SegmentAggregateCondition } from './SegmentAggregateCondition';
|
|
3
|
-
import { SegmentColumnCondition } from './SegmentColumnCondition';
|
|
4
|
-
export type SegmentCondition = SegmentColumnCondition | SegmentAggregateCondition;
|
|
5
|
-
export declare class SegmentGroup {
|
|
6
|
-
match: SegmentMatchEnum;
|
|
7
|
-
/** `kind` decide la clase; un `kind` desconocido NO se instancia y la validacion lo rechaza (el objeto queda sin `@Equals` valido). */
|
|
8
|
-
conditions: SegmentCondition[];
|
|
9
|
-
}
|
|
1
|
+
export * from '../../../../rules/dtos/population/SegmentGroup';
|
|
@@ -1,44 +1,17 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
10
15
|
};
|
|
11
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
|
|
13
|
-
const class_transformer_1 = require("class-transformer");
|
|
14
|
-
const class_validator_1 = require("class-validator");
|
|
15
|
-
const SegmentConditionKindEnum_1 = require("../../../enums/SegmentConditionKindEnum");
|
|
16
|
-
const SegmentMatchEnum_1 = require("../../../enums/SegmentMatchEnum");
|
|
17
|
-
const SegmentAggregateCondition_1 = require("./SegmentAggregateCondition");
|
|
18
|
-
const SegmentColumnCondition_1 = require("./SegmentColumnCondition");
|
|
19
|
-
class SegmentGroup {
|
|
20
|
-
}
|
|
21
|
-
exports.SegmentGroup = SegmentGroup;
|
|
22
|
-
__decorate([
|
|
23
|
-
(0, class_transformer_1.Expose)(),
|
|
24
|
-
(0, class_validator_1.IsEnum)(SegmentMatchEnum_1.SegmentMatchEnum),
|
|
25
|
-
__metadata("design:type", String)
|
|
26
|
-
], SegmentGroup.prototype, "match", void 0);
|
|
27
|
-
__decorate([
|
|
28
|
-
(0, class_transformer_1.Expose)(),
|
|
29
|
-
(0, class_validator_1.IsArray)(),
|
|
30
|
-
(0, class_validator_1.ArrayMinSize)(1),
|
|
31
|
-
(0, class_validator_1.ArrayMaxSize)(20),
|
|
32
|
-
(0, class_validator_1.ValidateNested)({ each: true }),
|
|
33
|
-
(0, class_transformer_1.Type)(() => Object, {
|
|
34
|
-
keepDiscriminatorProperty: true,
|
|
35
|
-
discriminator: {
|
|
36
|
-
property: 'kind',
|
|
37
|
-
subTypes: [
|
|
38
|
-
{ value: SegmentColumnCondition_1.SegmentColumnCondition, name: SegmentConditionKindEnum_1.SegmentConditionKindEnum.COLUMN },
|
|
39
|
-
{ value: SegmentAggregateCondition_1.SegmentAggregateCondition, name: SegmentConditionKindEnum_1.SegmentConditionKindEnum.AGGREGATE },
|
|
40
|
-
],
|
|
41
|
-
},
|
|
42
|
-
}),
|
|
43
|
-
__metadata("design:type", Array)
|
|
44
|
-
], SegmentGroup.prototype, "conditions", void 0);
|
|
17
|
+
__exportStar(require("../../../../rules/dtos/population/SegmentGroup"), exports);
|
|
@@ -1,10 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import { SegmentParamTypeEnum } from '../../../enums/SegmentParamTypeEnum';
|
|
3
|
-
/** Un `?` del SQL, en orden. LITERAL lleva `value` como texto canonico; REFERENCE_AT_MINUS_DAYS lleva `days`. */
|
|
4
|
-
export declare class SegmentParam {
|
|
5
|
-
name: string;
|
|
6
|
-
type: SegmentParamTypeEnum;
|
|
7
|
-
source: SegmentParamSourceEnum;
|
|
8
|
-
value?: string;
|
|
9
|
-
days?: number;
|
|
10
|
-
}
|
|
1
|
+
export * from '../../../../rules/dtos/population/SegmentParam';
|
|
@@ -1,7 +1,17 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
2
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
|
|
4
|
-
/** Un `?` del SQL, en orden. LITERAL lleva `value` como texto canonico; REFERENCE_AT_MINUS_DAYS lleva `days`. */
|
|
5
|
-
class SegmentParam {
|
|
6
|
-
}
|
|
7
|
-
exports.SegmentParam = SegmentParam;
|
|
17
|
+
__exportStar(require("../../../../rules/dtos/population/SegmentParam"), exports);
|
|
@@ -1,10 +1 @@
|
|
|
1
|
-
export
|
|
2
|
-
table: string;
|
|
3
|
-
joinKey: string;
|
|
4
|
-
columnCount: number;
|
|
5
|
-
}
|
|
6
|
-
/** `available: false` = ambiente sin datalake accesible: el constructor muestra "no disponible". */
|
|
7
|
-
export declare class SegmentSchemaResponse {
|
|
8
|
-
available: boolean;
|
|
9
|
-
tables: SegmentSchemaTableResponse[];
|
|
10
|
-
}
|
|
1
|
+
export * from '../../../../rules/dtos/population/SegmentSchemaResponse';
|
|
@@ -1,10 +1,17 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
2
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
|
|
4
|
-
class SegmentSchemaTableResponse {
|
|
5
|
-
}
|
|
6
|
-
exports.SegmentSchemaTableResponse = SegmentSchemaTableResponse;
|
|
7
|
-
/** `available: false` = ambiente sin datalake accesible: el constructor muestra "no disponible". */
|
|
8
|
-
class SegmentSchemaResponse {
|
|
9
|
-
}
|
|
10
|
-
exports.SegmentSchemaResponse = SegmentSchemaResponse;
|
|
17
|
+
__exportStar(require("../../../../rules/dtos/population/SegmentSchemaResponse"), exports);
|
|
@@ -1,12 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export declare class SegmentColumnSchemaResponse {
|
|
3
|
-
name: string;
|
|
4
|
-
type: string;
|
|
5
|
-
isDate: boolean;
|
|
6
|
-
operators: SegmentOperatorEnum[];
|
|
7
|
-
}
|
|
8
|
-
export declare class SegmentTableSchemaResponse {
|
|
9
|
-
table: string;
|
|
10
|
-
joinKey: string;
|
|
11
|
-
columns: SegmentColumnSchemaResponse[];
|
|
12
|
-
}
|
|
1
|
+
export * from '../../../../rules/dtos/population/SegmentTableSchemaResponse';
|