@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.
Files changed (174) hide show
  1. package/_test_/unit/retailCustomer/ensureCustomerByPhoneRequest.test.ts +30 -0
  2. package/_test_/unit/retailWizard/accessorySaleRequests.test.ts +108 -0
  3. package/_test_/unit/retailWizard/cancelSaleConditions.test.ts +2 -1
  4. package/_test_/unit/retailWizard/portalCancelSaleRequest.test.ts +34 -0
  5. package/_test_/unit/rules/populationDtos.test.ts +58 -0
  6. package/_test_/unit/rules/populationMove.test.ts +31 -0
  7. package/bin/retailCustomer/dtos/requests/EnsureCustomerByPhoneRequest.d.ts +9 -0
  8. package/bin/retailCustomer/dtos/requests/EnsureCustomerByPhoneRequest.js +34 -0
  9. package/bin/retailCustomer/dtos/responses/EnsureCustomerByPhoneResponse.d.ts +5 -0
  10. package/bin/retailCustomer/dtos/responses/EnsureCustomerByPhoneResponse.js +2 -0
  11. package/bin/retailCustomer/index.d.ts +2 -0
  12. package/bin/retailCustomer/index.js +2 -0
  13. package/bin/retailWizard/dtos/AccessorySaleLine.d.ts +7 -0
  14. package/bin/retailWizard/dtos/AccessorySaleLine.js +38 -0
  15. package/bin/retailWizard/dtos/Sale.d.ts +5 -1
  16. package/bin/retailWizard/dtos/requests/CreateAccessorySaleRequest.d.ts +18 -0
  17. package/bin/retailWizard/dtos/requests/CreateAccessorySaleRequest.js +69 -0
  18. package/bin/retailWizard/dtos/requests/PortalCancelSaleRequest.d.ts +12 -0
  19. package/bin/retailWizard/dtos/requests/PortalCancelSaleRequest.js +43 -0
  20. package/bin/retailWizard/dtos/requests/SendAccessoryOtpRequest.d.ts +4 -0
  21. package/bin/retailWizard/dtos/requests/SendAccessoryOtpRequest.js +25 -0
  22. package/bin/retailWizard/dtos/requests/VerifyAccessoryOtpRequest.d.ts +4 -0
  23. package/bin/retailWizard/dtos/requests/VerifyAccessoryOtpRequest.js +24 -0
  24. package/bin/retailWizard/dtos/responses/AccessoryOtpChallenge.d.ts +7 -0
  25. package/bin/retailWizard/dtos/responses/AccessoryOtpChallenge.js +2 -0
  26. package/bin/retailWizard/dtos/responses/VerifyAccessoryOtpResponse.d.ts +7 -0
  27. package/bin/retailWizard/dtos/responses/VerifyAccessoryOtpResponse.js +2 -0
  28. package/bin/retailWizard/enums/SaleChannelEnum.d.ts +5 -0
  29. package/bin/retailWizard/enums/SaleChannelEnum.js +9 -0
  30. package/bin/retailWizard/index.d.ts +8 -0
  31. package/bin/retailWizard/index.js +8 -0
  32. package/bin/rewardsEligibility/constants/SegmentLimits.d.ts +1 -5
  33. package/bin/rewardsEligibility/constants/SegmentLimits.js +15 -6
  34. package/bin/rewardsEligibility/dtos/backoffice/segments/PopulationSegmentDefinition.d.ts +1 -8
  35. package/bin/rewardsEligibility/dtos/backoffice/segments/PopulationSegmentDefinition.js +14 -37
  36. package/bin/rewardsEligibility/dtos/backoffice/segments/SegmentAggregateCondition.d.ts +1 -18
  37. package/bin/rewardsEligibility/dtos/backoffice/segments/SegmentAggregateCondition.js +14 -68
  38. package/bin/rewardsEligibility/dtos/backoffice/segments/SegmentColumnCondition.d.ts +1 -11
  39. package/bin/rewardsEligibility/dtos/backoffice/segments/SegmentColumnCondition.js +14 -43
  40. package/bin/rewardsEligibility/dtos/backoffice/segments/SegmentGroup.d.ts +1 -9
  41. package/bin/rewardsEligibility/dtos/backoffice/segments/SegmentGroup.js +14 -41
  42. package/bin/rewardsEligibility/dtos/backoffice/segments/SegmentParam.d.ts +1 -10
  43. package/bin/rewardsEligibility/dtos/backoffice/segments/SegmentParam.js +15 -5
  44. package/bin/rewardsEligibility/dtos/backoffice/segments/SegmentSchemaResponse.d.ts +1 -10
  45. package/bin/rewardsEligibility/dtos/backoffice/segments/SegmentSchemaResponse.js +15 -8
  46. package/bin/rewardsEligibility/dtos/backoffice/segments/SegmentTableSchemaResponse.d.ts +1 -12
  47. package/bin/rewardsEligibility/dtos/backoffice/segments/SegmentTableSchemaResponse.js +15 -7
  48. package/bin/rewardsEligibility/dtos/backoffice/segments/SegmentUsedColumn.d.ts +1 -5
  49. package/bin/rewardsEligibility/dtos/backoffice/segments/SegmentUsedColumn.js +15 -4
  50. package/bin/rewardsEligibility/dtos/backoffice/segments/SegmentWindow.d.ts +1 -5
  51. package/bin/rewardsEligibility/dtos/backoffice/segments/SegmentWindow.js +14 -28
  52. package/bin/rewardsEligibility/enums/SegmentAggregateFnEnum.d.ts +1 -5
  53. package/bin/rewardsEligibility/enums/SegmentAggregateFnEnum.js +15 -7
  54. package/bin/rewardsEligibility/enums/SegmentConditionKindEnum.d.ts +1 -4
  55. package/bin/rewardsEligibility/enums/SegmentConditionKindEnum.js +15 -6
  56. package/bin/rewardsEligibility/enums/SegmentMatchEnum.d.ts +1 -4
  57. package/bin/rewardsEligibility/enums/SegmentMatchEnum.js +15 -6
  58. package/bin/rewardsEligibility/enums/SegmentOperatorEnum.d.ts +1 -16
  59. package/bin/rewardsEligibility/enums/SegmentOperatorEnum.js +15 -18
  60. package/bin/rewardsEligibility/enums/SegmentParamSourceEnum.d.ts +1 -5
  61. package/bin/rewardsEligibility/enums/SegmentParamSourceEnum.js +15 -7
  62. package/bin/rewardsEligibility/enums/SegmentParamTypeEnum.d.ts +1 -7
  63. package/bin/rewardsEligibility/enums/SegmentParamTypeEnum.js +15 -9
  64. package/bin/rules/constants/SegmentLimits.d.ts +5 -0
  65. package/bin/rules/constants/SegmentLimits.js +8 -0
  66. package/bin/rules/dtos/population/PopulationCompileRequest.d.ts +6 -0
  67. package/bin/rules/dtos/population/PopulationCompileRequest.js +32 -0
  68. package/bin/rules/dtos/population/PopulationCompileResponse.d.ts +9 -0
  69. package/bin/rules/dtos/population/PopulationCompileResponse.js +6 -0
  70. package/bin/rules/dtos/population/PopulationExecutionPageResponse.d.ts +10 -0
  71. package/bin/rules/dtos/population/PopulationExecutionPageResponse.js +7 -0
  72. package/bin/rules/dtos/population/PopulationExecutionRequest.d.ts +10 -0
  73. package/bin/rules/dtos/population/PopulationExecutionRequest.js +59 -0
  74. package/bin/rules/dtos/population/PopulationExecutionResponse.d.ts +5 -0
  75. package/bin/rules/dtos/population/PopulationExecutionResponse.js +6 -0
  76. package/bin/rules/dtos/population/PopulationSegmentDefinition.d.ts +8 -0
  77. package/bin/rules/dtos/population/PopulationSegmentDefinition.js +40 -0
  78. package/bin/rules/dtos/population/PopulationTestRequest.d.ts +7 -0
  79. package/bin/rules/dtos/population/PopulationTestRequest.js +38 -0
  80. package/bin/rules/dtos/population/PopulationTestResponse.d.ts +26 -0
  81. package/bin/rules/dtos/population/PopulationTestResponse.js +13 -0
  82. package/bin/rules/dtos/population/SegmentAggregateCondition.d.ts +18 -0
  83. package/bin/rules/dtos/population/SegmentAggregateCondition.js +71 -0
  84. package/bin/rules/dtos/population/SegmentColumnCondition.d.ts +11 -0
  85. package/bin/rules/dtos/population/SegmentColumnCondition.js +46 -0
  86. package/bin/rules/dtos/population/SegmentGroup.d.ts +9 -0
  87. package/bin/rules/dtos/population/SegmentGroup.js +44 -0
  88. package/bin/rules/dtos/population/SegmentParam.d.ts +10 -0
  89. package/bin/rules/dtos/population/SegmentParam.js +7 -0
  90. package/bin/rules/dtos/population/SegmentSchemaResponse.d.ts +10 -0
  91. package/bin/rules/dtos/population/SegmentSchemaResponse.js +10 -0
  92. package/bin/rules/dtos/population/SegmentTableSchemaResponse.d.ts +12 -0
  93. package/bin/rules/dtos/population/SegmentTableSchemaResponse.js +9 -0
  94. package/bin/rules/dtos/population/SegmentUsedColumn.d.ts +5 -0
  95. package/bin/rules/dtos/population/SegmentUsedColumn.js +6 -0
  96. package/bin/rules/dtos/population/SegmentWindow.d.ts +5 -0
  97. package/bin/rules/dtos/population/SegmentWindow.js +31 -0
  98. package/bin/rules/enums/PopulationErrorCodeEnum.d.ts +12 -0
  99. package/bin/rules/enums/PopulationErrorCodeEnum.js +16 -0
  100. package/bin/rules/enums/PopulationExecutionStatusEnum.d.ts +6 -0
  101. package/bin/rules/enums/PopulationExecutionStatusEnum.js +10 -0
  102. package/bin/rules/enums/PopulationTestStatusEnum.d.ts +5 -0
  103. package/bin/rules/enums/PopulationTestStatusEnum.js +9 -0
  104. package/bin/rules/enums/SegmentAggregateFnEnum.d.ts +5 -0
  105. package/bin/rules/enums/SegmentAggregateFnEnum.js +9 -0
  106. package/bin/rules/enums/SegmentConditionKindEnum.d.ts +4 -0
  107. package/bin/rules/enums/SegmentConditionKindEnum.js +8 -0
  108. package/bin/rules/enums/SegmentMatchEnum.d.ts +4 -0
  109. package/bin/rules/enums/SegmentMatchEnum.js +8 -0
  110. package/bin/rules/enums/SegmentOperatorEnum.d.ts +16 -0
  111. package/bin/rules/enums/SegmentOperatorEnum.js +20 -0
  112. package/bin/rules/enums/SegmentParamSourceEnum.d.ts +5 -0
  113. package/bin/rules/enums/SegmentParamSourceEnum.js +9 -0
  114. package/bin/rules/enums/SegmentParamTypeEnum.d.ts +7 -0
  115. package/bin/rules/enums/SegmentParamTypeEnum.js +11 -0
  116. package/bin/rules/index.d.ts +26 -0
  117. package/bin/rules/index.js +28 -0
  118. package/package.json +1 -1
  119. package/src/retailCustomer/dtos/requests/EnsureCustomerByPhoneRequest.ts +20 -0
  120. package/src/retailCustomer/dtos/responses/EnsureCustomerByPhoneResponse.ts +6 -0
  121. package/src/retailCustomer/index.ts +2 -0
  122. package/src/retailWizard/dtos/AccessorySaleLine.ts +23 -0
  123. package/src/retailWizard/dtos/Sale.ts +5 -1
  124. package/src/retailWizard/dtos/requests/CreateAccessorySaleRequest.ts +64 -0
  125. package/src/retailWizard/dtos/requests/PortalCancelSaleRequest.ts +29 -0
  126. package/src/retailWizard/dtos/requests/SendAccessoryOtpRequest.ts +11 -0
  127. package/src/retailWizard/dtos/requests/VerifyAccessoryOtpRequest.ts +10 -0
  128. package/src/retailWizard/dtos/responses/AccessoryOtpChallenge.ts +7 -0
  129. package/src/retailWizard/dtos/responses/VerifyAccessoryOtpResponse.ts +7 -0
  130. package/src/retailWizard/enums/SaleChannelEnum.ts +5 -0
  131. package/src/retailWizard/index.ts +8 -0
  132. package/src/rewardsEligibility/constants/SegmentLimits.ts +1 -5
  133. package/src/rewardsEligibility/dtos/backoffice/segments/PopulationSegmentDefinition.ts +1 -12
  134. package/src/rewardsEligibility/dtos/backoffice/segments/SegmentAggregateCondition.ts +1 -22
  135. package/src/rewardsEligibility/dtos/backoffice/segments/SegmentColumnCondition.ts +1 -15
  136. package/src/rewardsEligibility/dtos/backoffice/segments/SegmentGroup.ts +1 -27
  137. package/src/rewardsEligibility/dtos/backoffice/segments/SegmentParam.ts +1 -11
  138. package/src/rewardsEligibility/dtos/backoffice/segments/SegmentSchemaResponse.ts +1 -11
  139. package/src/rewardsEligibility/dtos/backoffice/segments/SegmentTableSchemaResponse.ts +1 -14
  140. package/src/rewardsEligibility/dtos/backoffice/segments/SegmentUsedColumn.ts +1 -5
  141. package/src/rewardsEligibility/dtos/backoffice/segments/SegmentWindow.ts +1 -9
  142. package/src/rewardsEligibility/enums/SegmentAggregateFnEnum.ts +1 -5
  143. package/src/rewardsEligibility/enums/SegmentConditionKindEnum.ts +1 -4
  144. package/src/rewardsEligibility/enums/SegmentMatchEnum.ts +1 -4
  145. package/src/rewardsEligibility/enums/SegmentOperatorEnum.ts +1 -16
  146. package/src/rewardsEligibility/enums/SegmentParamSourceEnum.ts +1 -5
  147. package/src/rewardsEligibility/enums/SegmentParamTypeEnum.ts +1 -7
  148. package/src/rules/constants/SegmentLimits.ts +5 -0
  149. package/src/rules/dtos/population/PopulationCompileRequest.ts +9 -0
  150. package/src/rules/dtos/population/PopulationCompileResponse.ts +10 -0
  151. package/src/rules/dtos/population/PopulationExecutionPageResponse.ts +11 -0
  152. package/src/rules/dtos/population/PopulationExecutionRequest.ts +13 -0
  153. package/src/rules/dtos/population/PopulationExecutionResponse.ts +6 -0
  154. package/src/rules/dtos/population/PopulationSegmentDefinition.ts +12 -0
  155. package/src/rules/dtos/population/PopulationTestRequest.ts +10 -0
  156. package/src/rules/dtos/population/PopulationTestResponse.ts +29 -0
  157. package/src/rules/dtos/population/SegmentAggregateCondition.ts +22 -0
  158. package/src/rules/dtos/population/SegmentColumnCondition.ts +15 -0
  159. package/src/rules/dtos/population/SegmentGroup.ts +27 -0
  160. package/src/rules/dtos/population/SegmentParam.ts +11 -0
  161. package/src/rules/dtos/population/SegmentSchemaResponse.ts +11 -0
  162. package/src/rules/dtos/population/SegmentTableSchemaResponse.ts +14 -0
  163. package/src/rules/dtos/population/SegmentUsedColumn.ts +5 -0
  164. package/src/rules/dtos/population/SegmentWindow.ts +9 -0
  165. package/src/rules/enums/PopulationErrorCodeEnum.ts +12 -0
  166. package/src/rules/enums/PopulationExecutionStatusEnum.ts +6 -0
  167. package/src/rules/enums/PopulationTestStatusEnum.ts +5 -0
  168. package/src/rules/enums/SegmentAggregateFnEnum.ts +5 -0
  169. package/src/rules/enums/SegmentConditionKindEnum.ts +4 -0
  170. package/src/rules/enums/SegmentMatchEnum.ts +4 -0
  171. package/src/rules/enums/SegmentOperatorEnum.ts +16 -0
  172. package/src/rules/enums/SegmentParamSourceEnum.ts +5 -0
  173. package/src/rules/enums/SegmentParamTypeEnum.ts +7 -0
  174. package/src/rules/index.ts +30 -0
@@ -1,9 +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
- exports.SegmentTableSchemaResponse = exports.SegmentColumnSchemaResponse = void 0;
4
- class SegmentColumnSchemaResponse {
5
- }
6
- exports.SegmentColumnSchemaResponse = SegmentColumnSchemaResponse;
7
- class SegmentTableSchemaResponse {
8
- }
9
- exports.SegmentTableSchemaResponse = SegmentTableSchemaResponse;
17
+ __exportStar(require("../../../../rules/dtos/population/SegmentTableSchemaResponse"), exports);
@@ -1,5 +1 @@
1
- export declare class SegmentUsedColumn {
2
- table: string;
3
- column: string;
4
- type: string;
5
- }
1
+ export * from '../../../../rules/dtos/population/SegmentUsedColumn';
@@ -1,6 +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
- exports.SegmentUsedColumn = void 0;
4
- class SegmentUsedColumn {
5
- }
6
- exports.SegmentUsedColumn = SegmentUsedColumn;
17
+ __exportStar(require("../../../../rules/dtos/population/SegmentUsedColumn"), exports);
@@ -1,5 +1 @@
1
- /** Ventana relativa [referenceAt - days, referenceAt) sobre una columna de fecha (A§4.1). */
2
- export declare class SegmentWindow {
3
- dateColumn: string;
4
- days: number;
5
- }
1
+ export * from '../../../../rules/dtos/population/SegmentWindow';
@@ -1,31 +1,17 @@
1
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);
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
- 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);
17
+ __exportStar(require("../../../../rules/dtos/population/SegmentWindow"), exports);
@@ -1,5 +1 @@
1
- export declare enum SegmentAggregateFnEnum {
2
- EXISTS = "EXISTS",
3
- COUNT = "COUNT",
4
- SUM = "SUM"
5
- }
1
+ export * from '../../rules/enums/SegmentAggregateFnEnum';
@@ -1,9 +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
- 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 = {}));
17
+ __exportStar(require("../../rules/enums/SegmentAggregateFnEnum"), exports);
@@ -1,4 +1 @@
1
- export declare enum SegmentConditionKindEnum {
2
- COLUMN = "COLUMN",
3
- AGGREGATE = "AGGREGATE"
4
- }
1
+ export * from '../../rules/enums/SegmentConditionKindEnum';
@@ -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
- exports.SegmentConditionKindEnum = void 0;
4
- var SegmentConditionKindEnum;
5
- (function (SegmentConditionKindEnum) {
6
- SegmentConditionKindEnum["COLUMN"] = "COLUMN";
7
- SegmentConditionKindEnum["AGGREGATE"] = "AGGREGATE";
8
- })(SegmentConditionKindEnum || (exports.SegmentConditionKindEnum = SegmentConditionKindEnum = {}));
17
+ __exportStar(require("../../rules/enums/SegmentConditionKindEnum"), exports);
@@ -1,4 +1 @@
1
- export declare enum SegmentMatchEnum {
2
- ALL = "ALL",
3
- ANY = "ANY"
4
- }
1
+ export * from '../../rules/enums/SegmentMatchEnum';
@@ -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
- exports.SegmentMatchEnum = void 0;
4
- var SegmentMatchEnum;
5
- (function (SegmentMatchEnum) {
6
- SegmentMatchEnum["ALL"] = "ALL";
7
- SegmentMatchEnum["ANY"] = "ANY";
8
- })(SegmentMatchEnum || (exports.SegmentMatchEnum = SegmentMatchEnum = {}));
17
+ __exportStar(require("../../rules/enums/SegmentMatchEnum"), exports);
@@ -1,16 +1 @@
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
- }
1
+ export * from '../../rules/enums/SegmentOperatorEnum';
@@ -1,20 +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
- 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 = {}));
17
+ __exportStar(require("../../rules/enums/SegmentOperatorEnum"), exports);
@@ -1,5 +1 @@
1
- export declare enum SegmentParamSourceEnum {
2
- LITERAL = "LITERAL",
3
- REFERENCE_AT = "REFERENCE_AT",
4
- REFERENCE_AT_MINUS_DAYS = "REFERENCE_AT_MINUS_DAYS"
5
- }
1
+ export * from '../../rules/enums/SegmentParamSourceEnum';
@@ -1,9 +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
- 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 = {}));
17
+ __exportStar(require("../../rules/enums/SegmentParamSourceEnum"), exports);
@@ -1,7 +1 @@
1
- export declare enum SegmentParamTypeEnum {
2
- STRING = "STRING",
3
- INTEGER = "INTEGER",
4
- DECIMAL = "DECIMAL",
5
- BOOLEAN = "BOOLEAN",
6
- TIMESTAMP = "TIMESTAMP"
7
- }
1
+ export * from '../../rules/enums/SegmentParamTypeEnum';
@@ -1,11 +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
- 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 = {}));
17
+ __exportStar(require("../../rules/enums/SegmentParamTypeEnum"), exports);
@@ -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 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;
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SEGMENT_MAX_AGGREGATES = exports.SEGMENT_MAX_PARAMS = exports.SEGMENT_MAX_DAYS = exports.SEGMENT_IDENTIFIER_PATTERN = void 0;
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;
@@ -0,0 +1,6 @@
1
+ import { PopulationSegmentDefinition } from './PopulationSegmentDefinition';
2
+ /** Compila una definicion a SQL parametrizado (POST /population/compile). `consumer` solo para logs/metricas. */
3
+ export declare class PopulationCompileRequest {
4
+ consumer?: string;
5
+ definition: PopulationSegmentDefinition;
6
+ }
@@ -0,0 +1,32 @@
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.PopulationCompileRequest = void 0;
13
+ const class_transformer_1 = require("class-transformer");
14
+ const class_validator_1 = require("class-validator");
15
+ const PopulationSegmentDefinition_1 = require("./PopulationSegmentDefinition");
16
+ /** Compila una definicion a SQL parametrizado (POST /population/compile). `consumer` solo para logs/metricas. */
17
+ class PopulationCompileRequest {
18
+ }
19
+ exports.PopulationCompileRequest = PopulationCompileRequest;
20
+ __decorate([
21
+ (0, class_transformer_1.Expose)(),
22
+ (0, class_validator_1.IsOptional)(),
23
+ (0, class_validator_1.IsString)(),
24
+ __metadata("design:type", String)
25
+ ], PopulationCompileRequest.prototype, "consumer", void 0);
26
+ __decorate([
27
+ (0, class_transformer_1.Expose)(),
28
+ (0, class_validator_1.IsDefined)(),
29
+ (0, class_validator_1.ValidateNested)(),
30
+ (0, class_transformer_1.Type)(() => PopulationSegmentDefinition_1.PopulationSegmentDefinition),
31
+ __metadata("design:type", PopulationSegmentDefinition_1.PopulationSegmentDefinition)
32
+ ], PopulationCompileRequest.prototype, "definition", void 0);
@@ -0,0 +1,9 @@
1
+ import { SegmentParam } from './SegmentParam';
2
+ import { SegmentUsedColumn } from './SegmentUsedColumn';
3
+ export declare class PopulationCompileResponse {
4
+ sql: string;
5
+ params: SegmentParam[];
6
+ usedColumns: SegmentUsedColumn[];
7
+ humanSummary: string;
8
+ definitionHash: string;
9
+ }
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PopulationCompileResponse = void 0;
4
+ class PopulationCompileResponse {
5
+ }
6
+ exports.PopulationCompileResponse = PopulationCompileResponse;
@@ -0,0 +1,10 @@
1
+ import { PopulationErrorCodeEnum } from '../../enums/PopulationErrorCodeEnum';
2
+ import { PopulationExecutionStatusEnum } from '../../enums/PopulationExecutionStatusEnum';
3
+ /** Pagina de hasta 1000 ids. Sin `nextToken` = ultima pagina. */
4
+ export declare class PopulationExecutionPageResponse {
5
+ executionId: string;
6
+ status: PopulationExecutionStatusEnum;
7
+ ids: string[];
8
+ nextToken?: string;
9
+ reason?: PopulationErrorCodeEnum;
10
+ }
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PopulationExecutionPageResponse = void 0;
4
+ /** Pagina de hasta 1000 ids. Sin `nextToken` = ultima pagina. */
5
+ class PopulationExecutionPageResponse {
6
+ }
7
+ exports.PopulationExecutionPageResponse = PopulationExecutionPageResponse;
@@ -0,0 +1,10 @@
1
+ import { PopulationSegmentDefinition } from './PopulationSegmentDefinition';
2
+ /** Inicia una ejecucion de poblacion (POST /population/executions). El central recompila; `expectedSql` activa G3 (SEGMENT_SCHEMA_DRIFT). */
3
+ export declare class PopulationExecutionRequest {
4
+ consumer?: string;
5
+ definition: PopulationSegmentDefinition;
6
+ referenceAt: string;
7
+ idempotencyKey: string;
8
+ expectedSql?: string;
9
+ afterDirectoryId?: string;
10
+ }
@@ -0,0 +1,59 @@
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.PopulationExecutionRequest = void 0;
13
+ const class_transformer_1 = require("class-transformer");
14
+ const class_validator_1 = require("class-validator");
15
+ const PopulationSegmentDefinition_1 = require("./PopulationSegmentDefinition");
16
+ /** Inicia una ejecucion de poblacion (POST /population/executions). El central recompila; `expectedSql` activa G3 (SEGMENT_SCHEMA_DRIFT). */
17
+ class PopulationExecutionRequest {
18
+ }
19
+ exports.PopulationExecutionRequest = PopulationExecutionRequest;
20
+ __decorate([
21
+ (0, class_transformer_1.Expose)(),
22
+ (0, class_validator_1.IsOptional)(),
23
+ (0, class_validator_1.IsString)(),
24
+ __metadata("design:type", String)
25
+ ], PopulationExecutionRequest.prototype, "consumer", void 0);
26
+ __decorate([
27
+ (0, class_transformer_1.Expose)(),
28
+ (0, class_validator_1.IsDefined)(),
29
+ (0, class_validator_1.ValidateNested)(),
30
+ (0, class_transformer_1.Type)(() => PopulationSegmentDefinition_1.PopulationSegmentDefinition),
31
+ __metadata("design:type", PopulationSegmentDefinition_1.PopulationSegmentDefinition)
32
+ ], PopulationExecutionRequest.prototype, "definition", void 0);
33
+ __decorate([
34
+ (0, class_transformer_1.Expose)(),
35
+ (0, class_validator_1.IsISO8601)({ strict: true }),
36
+ __metadata("design:type", String)
37
+ ], PopulationExecutionRequest.prototype, "referenceAt", void 0);
38
+ __decorate([
39
+ (0, class_transformer_1.Expose)(),
40
+ (0, class_validator_1.IsString)(),
41
+ (0, class_validator_1.MinLength)(32),
42
+ (0, class_validator_1.MaxLength)(128),
43
+ __metadata("design:type", String)
44
+ ], PopulationExecutionRequest.prototype, "idempotencyKey", void 0);
45
+ __decorate([
46
+ (0, class_transformer_1.Expose)(),
47
+ (0, class_validator_1.IsOptional)(),
48
+ (0, class_validator_1.IsString)(),
49
+ (0, class_validator_1.IsNotEmpty)(),
50
+ __metadata("design:type", String)
51
+ ], PopulationExecutionRequest.prototype, "expectedSql", void 0);
52
+ __decorate([
53
+ (0, class_transformer_1.Expose)(),
54
+ (0, class_validator_1.IsOptional)(),
55
+ (0, class_validator_1.IsString)(),
56
+ (0, class_validator_1.MinLength)(1),
57
+ (0, class_validator_1.MaxLength)(256),
58
+ __metadata("design:type", String)
59
+ ], PopulationExecutionRequest.prototype, "afterDirectoryId", void 0);
@@ -0,0 +1,5 @@
1
+ import { PopulationExecutionStatusEnum } from '../../enums/PopulationExecutionStatusEnum';
2
+ export declare class PopulationExecutionResponse {
3
+ executionId: string;
4
+ status: PopulationExecutionStatusEnum;
5
+ }
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PopulationExecutionResponse = void 0;
4
+ class PopulationExecutionResponse {
5
+ }
6
+ exports.PopulationExecutionResponse = PopulationExecutionResponse;
@@ -0,0 +1,8 @@
1
+ import { SegmentMatchEnum } from '../../enums/SegmentMatchEnum';
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
+ }
@@ -0,0 +1,40 @@
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.PopulationSegmentDefinition = 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
+ 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);
@@ -0,0 +1,7 @@
1
+ import { PopulationSegmentDefinition } from './PopulationSegmentDefinition';
2
+ /** Prueba sin estado de una definicion (POST /population/tests). `referenceAt` ISO-8601 con zona; por defecto, ahora. */
3
+ export declare class PopulationTestRequest {
4
+ consumer?: string;
5
+ definition: PopulationSegmentDefinition;
6
+ referenceAt?: string;
7
+ }
@@ -0,0 +1,38 @@
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.PopulationTestRequest = void 0;
13
+ const class_transformer_1 = require("class-transformer");
14
+ const class_validator_1 = require("class-validator");
15
+ const PopulationSegmentDefinition_1 = require("./PopulationSegmentDefinition");
16
+ /** Prueba sin estado de una definicion (POST /population/tests). `referenceAt` ISO-8601 con zona; por defecto, ahora. */
17
+ class PopulationTestRequest {
18
+ }
19
+ exports.PopulationTestRequest = PopulationTestRequest;
20
+ __decorate([
21
+ (0, class_transformer_1.Expose)(),
22
+ (0, class_validator_1.IsOptional)(),
23
+ (0, class_validator_1.IsString)(),
24
+ __metadata("design:type", String)
25
+ ], PopulationTestRequest.prototype, "consumer", void 0);
26
+ __decorate([
27
+ (0, class_transformer_1.Expose)(),
28
+ (0, class_validator_1.IsDefined)(),
29
+ (0, class_validator_1.ValidateNested)(),
30
+ (0, class_transformer_1.Type)(() => PopulationSegmentDefinition_1.PopulationSegmentDefinition),
31
+ __metadata("design:type", PopulationSegmentDefinition_1.PopulationSegmentDefinition)
32
+ ], PopulationTestRequest.prototype, "definition", void 0);
33
+ __decorate([
34
+ (0, class_transformer_1.Expose)(),
35
+ (0, class_validator_1.IsOptional)(),
36
+ (0, class_validator_1.IsISO8601)({ strict: true }),
37
+ __metadata("design:type", String)
38
+ ], PopulationTestRequest.prototype, "referenceAt", void 0);