@fiado/type-kit 3.540.0 → 3.542.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 (141) hide show
  1. package/_test_/unit/rules/populationDtos.test.ts +58 -0
  2. package/_test_/unit/rules/populationMove.test.ts +31 -0
  3. package/bin/card/dtos/CardAuditInfo.d.ts +19 -0
  4. package/bin/card/dtos/CardAuditInfo.js +2 -0
  5. package/bin/card/enums/CardAuditActorType.d.ts +15 -0
  6. package/bin/card/enums/CardAuditActorType.js +19 -0
  7. package/bin/card/index.d.ts +2 -0
  8. package/bin/card/index.js +2 -0
  9. package/bin/rewardsEligibility/constants/SegmentLimits.d.ts +1 -5
  10. package/bin/rewardsEligibility/constants/SegmentLimits.js +15 -6
  11. package/bin/rewardsEligibility/dtos/backoffice/segments/PopulationSegmentDefinition.d.ts +1 -8
  12. package/bin/rewardsEligibility/dtos/backoffice/segments/PopulationSegmentDefinition.js +14 -37
  13. package/bin/rewardsEligibility/dtos/backoffice/segments/SegmentAggregateCondition.d.ts +1 -18
  14. package/bin/rewardsEligibility/dtos/backoffice/segments/SegmentAggregateCondition.js +14 -68
  15. package/bin/rewardsEligibility/dtos/backoffice/segments/SegmentColumnCondition.d.ts +1 -11
  16. package/bin/rewardsEligibility/dtos/backoffice/segments/SegmentColumnCondition.js +14 -43
  17. package/bin/rewardsEligibility/dtos/backoffice/segments/SegmentGroup.d.ts +1 -9
  18. package/bin/rewardsEligibility/dtos/backoffice/segments/SegmentGroup.js +14 -41
  19. package/bin/rewardsEligibility/dtos/backoffice/segments/SegmentParam.d.ts +1 -10
  20. package/bin/rewardsEligibility/dtos/backoffice/segments/SegmentParam.js +15 -5
  21. package/bin/rewardsEligibility/dtos/backoffice/segments/SegmentSchemaResponse.d.ts +1 -10
  22. package/bin/rewardsEligibility/dtos/backoffice/segments/SegmentSchemaResponse.js +15 -8
  23. package/bin/rewardsEligibility/dtos/backoffice/segments/SegmentTableSchemaResponse.d.ts +1 -12
  24. package/bin/rewardsEligibility/dtos/backoffice/segments/SegmentTableSchemaResponse.js +15 -7
  25. package/bin/rewardsEligibility/dtos/backoffice/segments/SegmentUsedColumn.d.ts +1 -5
  26. package/bin/rewardsEligibility/dtos/backoffice/segments/SegmentUsedColumn.js +15 -4
  27. package/bin/rewardsEligibility/dtos/backoffice/segments/SegmentWindow.d.ts +1 -5
  28. package/bin/rewardsEligibility/dtos/backoffice/segments/SegmentWindow.js +14 -28
  29. package/bin/rewardsEligibility/enums/SegmentAggregateFnEnum.d.ts +1 -5
  30. package/bin/rewardsEligibility/enums/SegmentAggregateFnEnum.js +15 -7
  31. package/bin/rewardsEligibility/enums/SegmentConditionKindEnum.d.ts +1 -4
  32. package/bin/rewardsEligibility/enums/SegmentConditionKindEnum.js +15 -6
  33. package/bin/rewardsEligibility/enums/SegmentMatchEnum.d.ts +1 -4
  34. package/bin/rewardsEligibility/enums/SegmentMatchEnum.js +15 -6
  35. package/bin/rewardsEligibility/enums/SegmentOperatorEnum.d.ts +1 -16
  36. package/bin/rewardsEligibility/enums/SegmentOperatorEnum.js +15 -18
  37. package/bin/rewardsEligibility/enums/SegmentParamSourceEnum.d.ts +1 -5
  38. package/bin/rewardsEligibility/enums/SegmentParamSourceEnum.js +15 -7
  39. package/bin/rewardsEligibility/enums/SegmentParamTypeEnum.d.ts +1 -7
  40. package/bin/rewardsEligibility/enums/SegmentParamTypeEnum.js +15 -9
  41. package/bin/rules/constants/SegmentLimits.d.ts +5 -0
  42. package/bin/rules/constants/SegmentLimits.js +8 -0
  43. package/bin/rules/dtos/population/PopulationCompileRequest.d.ts +6 -0
  44. package/bin/rules/dtos/population/PopulationCompileRequest.js +32 -0
  45. package/bin/rules/dtos/population/PopulationCompileResponse.d.ts +9 -0
  46. package/bin/rules/dtos/population/PopulationCompileResponse.js +6 -0
  47. package/bin/rules/dtos/population/PopulationExecutionPageResponse.d.ts +10 -0
  48. package/bin/rules/dtos/population/PopulationExecutionPageResponse.js +7 -0
  49. package/bin/rules/dtos/population/PopulationExecutionRequest.d.ts +10 -0
  50. package/bin/rules/dtos/population/PopulationExecutionRequest.js +59 -0
  51. package/bin/rules/dtos/population/PopulationExecutionResponse.d.ts +5 -0
  52. package/bin/rules/dtos/population/PopulationExecutionResponse.js +6 -0
  53. package/bin/rules/dtos/population/PopulationSegmentDefinition.d.ts +8 -0
  54. package/bin/rules/dtos/population/PopulationSegmentDefinition.js +40 -0
  55. package/bin/rules/dtos/population/PopulationTestRequest.d.ts +7 -0
  56. package/bin/rules/dtos/population/PopulationTestRequest.js +38 -0
  57. package/bin/rules/dtos/population/PopulationTestResponse.d.ts +26 -0
  58. package/bin/rules/dtos/population/PopulationTestResponse.js +13 -0
  59. package/bin/rules/dtos/population/SegmentAggregateCondition.d.ts +18 -0
  60. package/bin/rules/dtos/population/SegmentAggregateCondition.js +71 -0
  61. package/bin/rules/dtos/population/SegmentColumnCondition.d.ts +11 -0
  62. package/bin/rules/dtos/population/SegmentColumnCondition.js +46 -0
  63. package/bin/rules/dtos/population/SegmentGroup.d.ts +9 -0
  64. package/bin/rules/dtos/population/SegmentGroup.js +44 -0
  65. package/bin/rules/dtos/population/SegmentParam.d.ts +10 -0
  66. package/bin/rules/dtos/population/SegmentParam.js +7 -0
  67. package/bin/rules/dtos/population/SegmentSchemaResponse.d.ts +10 -0
  68. package/bin/rules/dtos/population/SegmentSchemaResponse.js +10 -0
  69. package/bin/rules/dtos/population/SegmentTableSchemaResponse.d.ts +12 -0
  70. package/bin/rules/dtos/population/SegmentTableSchemaResponse.js +9 -0
  71. package/bin/rules/dtos/population/SegmentUsedColumn.d.ts +5 -0
  72. package/bin/rules/dtos/population/SegmentUsedColumn.js +6 -0
  73. package/bin/rules/dtos/population/SegmentWindow.d.ts +5 -0
  74. package/bin/rules/dtos/population/SegmentWindow.js +31 -0
  75. package/bin/rules/enums/PopulationErrorCodeEnum.d.ts +12 -0
  76. package/bin/rules/enums/PopulationErrorCodeEnum.js +16 -0
  77. package/bin/rules/enums/PopulationExecutionStatusEnum.d.ts +6 -0
  78. package/bin/rules/enums/PopulationExecutionStatusEnum.js +10 -0
  79. package/bin/rules/enums/PopulationTestStatusEnum.d.ts +5 -0
  80. package/bin/rules/enums/PopulationTestStatusEnum.js +9 -0
  81. package/bin/rules/enums/SegmentAggregateFnEnum.d.ts +5 -0
  82. package/bin/rules/enums/SegmentAggregateFnEnum.js +9 -0
  83. package/bin/rules/enums/SegmentConditionKindEnum.d.ts +4 -0
  84. package/bin/rules/enums/SegmentConditionKindEnum.js +8 -0
  85. package/bin/rules/enums/SegmentMatchEnum.d.ts +4 -0
  86. package/bin/rules/enums/SegmentMatchEnum.js +8 -0
  87. package/bin/rules/enums/SegmentOperatorEnum.d.ts +16 -0
  88. package/bin/rules/enums/SegmentOperatorEnum.js +20 -0
  89. package/bin/rules/enums/SegmentParamSourceEnum.d.ts +5 -0
  90. package/bin/rules/enums/SegmentParamSourceEnum.js +9 -0
  91. package/bin/rules/enums/SegmentParamTypeEnum.d.ts +7 -0
  92. package/bin/rules/enums/SegmentParamTypeEnum.js +11 -0
  93. package/bin/rules/index.d.ts +26 -0
  94. package/bin/rules/index.js +28 -0
  95. package/package.json +1 -1
  96. package/src/card/dtos/CardAuditInfo.ts +20 -0
  97. package/src/card/enums/CardAuditActorType.ts +15 -0
  98. package/src/card/index.ts +2 -0
  99. package/src/rewardsEligibility/constants/SegmentLimits.ts +1 -5
  100. package/src/rewardsEligibility/dtos/backoffice/segments/PopulationSegmentDefinition.ts +1 -12
  101. package/src/rewardsEligibility/dtos/backoffice/segments/SegmentAggregateCondition.ts +1 -22
  102. package/src/rewardsEligibility/dtos/backoffice/segments/SegmentColumnCondition.ts +1 -15
  103. package/src/rewardsEligibility/dtos/backoffice/segments/SegmentGroup.ts +1 -27
  104. package/src/rewardsEligibility/dtos/backoffice/segments/SegmentParam.ts +1 -11
  105. package/src/rewardsEligibility/dtos/backoffice/segments/SegmentSchemaResponse.ts +1 -11
  106. package/src/rewardsEligibility/dtos/backoffice/segments/SegmentTableSchemaResponse.ts +1 -14
  107. package/src/rewardsEligibility/dtos/backoffice/segments/SegmentUsedColumn.ts +1 -5
  108. package/src/rewardsEligibility/dtos/backoffice/segments/SegmentWindow.ts +1 -9
  109. package/src/rewardsEligibility/enums/SegmentAggregateFnEnum.ts +1 -5
  110. package/src/rewardsEligibility/enums/SegmentConditionKindEnum.ts +1 -4
  111. package/src/rewardsEligibility/enums/SegmentMatchEnum.ts +1 -4
  112. package/src/rewardsEligibility/enums/SegmentOperatorEnum.ts +1 -16
  113. package/src/rewardsEligibility/enums/SegmentParamSourceEnum.ts +1 -5
  114. package/src/rewardsEligibility/enums/SegmentParamTypeEnum.ts +1 -7
  115. package/src/rules/constants/SegmentLimits.ts +5 -0
  116. package/src/rules/dtos/population/PopulationCompileRequest.ts +9 -0
  117. package/src/rules/dtos/population/PopulationCompileResponse.ts +10 -0
  118. package/src/rules/dtos/population/PopulationExecutionPageResponse.ts +11 -0
  119. package/src/rules/dtos/population/PopulationExecutionRequest.ts +13 -0
  120. package/src/rules/dtos/population/PopulationExecutionResponse.ts +6 -0
  121. package/src/rules/dtos/population/PopulationSegmentDefinition.ts +12 -0
  122. package/src/rules/dtos/population/PopulationTestRequest.ts +10 -0
  123. package/src/rules/dtos/population/PopulationTestResponse.ts +29 -0
  124. package/src/rules/dtos/population/SegmentAggregateCondition.ts +22 -0
  125. package/src/rules/dtos/population/SegmentColumnCondition.ts +15 -0
  126. package/src/rules/dtos/population/SegmentGroup.ts +27 -0
  127. package/src/rules/dtos/population/SegmentParam.ts +11 -0
  128. package/src/rules/dtos/population/SegmentSchemaResponse.ts +11 -0
  129. package/src/rules/dtos/population/SegmentTableSchemaResponse.ts +14 -0
  130. package/src/rules/dtos/population/SegmentUsedColumn.ts +5 -0
  131. package/src/rules/dtos/population/SegmentWindow.ts +9 -0
  132. package/src/rules/enums/PopulationErrorCodeEnum.ts +12 -0
  133. package/src/rules/enums/PopulationExecutionStatusEnum.ts +6 -0
  134. package/src/rules/enums/PopulationTestStatusEnum.ts +5 -0
  135. package/src/rules/enums/SegmentAggregateFnEnum.ts +5 -0
  136. package/src/rules/enums/SegmentConditionKindEnum.ts +4 -0
  137. package/src/rules/enums/SegmentMatchEnum.ts +4 -0
  138. package/src/rules/enums/SegmentOperatorEnum.ts +16 -0
  139. package/src/rules/enums/SegmentParamSourceEnum.ts +5 -0
  140. package/src/rules/enums/SegmentParamTypeEnum.ts +7 -0
  141. package/src/rules/index.ts +30 -0
@@ -0,0 +1,58 @@
1
+ import 'reflect-metadata';
2
+ import { plainToInstance } from 'class-transformer';
3
+ import { validate } from 'class-validator';
4
+ import * as Rules from '../../../src/rules';
5
+
6
+ const definition = {
7
+ baseTable: 'remittanceusers', match: 'ALL',
8
+ groups: [{ match: 'ALL', conditions: [
9
+ { kind: 'COLUMN', table: 'remittanceusers', column: 'status', op: 'EQUALS', value: 'ACTIVE' },
10
+ ] }],
11
+ };
12
+
13
+ const validExecution = {
14
+ definition,
15
+ referenceAt: '2026-10-16T10:00:00Z',
16
+ idempotencyKey: 'k'.repeat(32),
17
+ };
18
+
19
+ const errorsOf = async (cls: new () => object, plain: object): Promise<number> =>
20
+ (await validate(plainToInstance(cls, plain, { excludeExtraneousValues: true }))).length;
21
+
22
+ describe('population DTOs', () => {
23
+ it('request de ejecucion valido -> 0 errores', async () => {
24
+ expect(await errorsOf(Rules.PopulationExecutionRequest, validExecution)).toBe(0);
25
+ });
26
+
27
+ it('idempotencyKey de 31 caracteres -> error', async () => {
28
+ expect(await errorsOf(Rules.PopulationExecutionRequest, { ...validExecution, idempotencyKey: 'k'.repeat(31) })).toBeGreaterThan(0);
29
+ });
30
+
31
+ it('referenceAt "ayer" -> error', async () => {
32
+ expect(await errorsOf(Rules.PopulationExecutionRequest, { ...validExecution, referenceAt: 'ayer' })).toBeGreaterThan(0);
33
+ expect(await errorsOf(Rules.PopulationTestRequest, { definition, referenceAt: 'ayer' })).toBeGreaterThan(0);
34
+ });
35
+
36
+ it('afterDirectoryId vacio -> error', async () => {
37
+ expect(await errorsOf(Rules.PopulationExecutionRequest, { ...validExecution, afterDirectoryId: '' })).toBeGreaterThan(0);
38
+ });
39
+
40
+ it('definition ausente -> error', async () => {
41
+ expect(await errorsOf(Rules.PopulationCompileRequest, { consumer: 'x' })).toBeGreaterThan(0);
42
+ expect(await errorsOf(Rules.PopulationTestRequest, {})).toBeGreaterThan(0);
43
+ expect(await errorsOf(Rules.PopulationExecutionRequest, { ...validExecution, definition: undefined })).toBeGreaterThan(0);
44
+ });
45
+
46
+ it('compile y test validos -> 0 errores', async () => {
47
+ expect(await errorsOf(Rules.PopulationCompileRequest, { definition })).toBe(0);
48
+ expect(await errorsOf(Rules.PopulationTestRequest, { definition, referenceAt: '2026-10-16T10:00:00Z' })).toBe(0);
49
+ });
50
+
51
+ it('enums: codigos de error coinciden con SegmentErrorCodeEnum y valor = nombre', async () => {
52
+ const codes = Object.keys(Rules.PopulationErrorCodeEnum);
53
+ expect(codes).toHaveLength(9);
54
+ codes.forEach((k) => expect(Rules.PopulationErrorCodeEnum[k as keyof typeof Rules.PopulationErrorCodeEnum]).toBe(k));
55
+ expect(Object.keys(Rules.PopulationTestStatusEnum)).toEqual(['RUNNING', 'PASSED', 'FAILED']);
56
+ expect(Object.keys(Rules.PopulationExecutionStatusEnum)).toEqual(['RUNNING', 'SUCCEEDED', 'FAILED', 'CANCELLED']);
57
+ });
58
+ });
@@ -0,0 +1,31 @@
1
+ import 'reflect-metadata';
2
+ import { plainToInstance } from 'class-transformer';
3
+ import { validate } from 'class-validator';
4
+ import * as Rules from '../../../src/rules';
5
+ import * as RewardsEligibility from '../../../src/rewardsEligibility';
6
+
7
+ const validDefinition = {
8
+ baseTable: 'remittanceusers', match: 'ALL',
9
+ groups: [{ match: 'ALL', conditions: [
10
+ { kind: 'COLUMN', table: 'remittanceusers', column: 'status', op: 'EQUALS', value: 'ACTIVE' },
11
+ { kind: 'AGGREGATE', table: 'remittancetransactions', fn: 'SUM', column: 'amountusd', op: 'GT', value: 100,
12
+ window: { dateColumn: 'createdat', days: 30 },
13
+ filters: [{ kind: 'COLUMN', table: 'remittancetransactions', column: 'status', op: 'EQUALS', value: 'PAYABLE' }] },
14
+ ] }],
15
+ };
16
+
17
+ describe('population move rewardsEligibility -> rules', () => {
18
+ it('re-export preserva identidad de clases y enums', () => {
19
+ expect(Rules.PopulationSegmentDefinition).toBe(RewardsEligibility.PopulationSegmentDefinition);
20
+ expect(Rules.SegmentGroup).toBe(RewardsEligibility.SegmentGroup);
21
+ expect(Rules.SegmentOperatorEnum).toBe(RewardsEligibility.SegmentOperatorEnum);
22
+ });
23
+
24
+ it('plainToInstance discrimina por kind y valida sin errores', async () => {
25
+ const instance = plainToInstance(Rules.PopulationSegmentDefinition, validDefinition, { excludeExtraneousValues: true });
26
+ const [column, aggregate] = instance.groups[0].conditions;
27
+ expect(column).toBeInstanceOf(Rules.SegmentColumnCondition);
28
+ expect(aggregate).toBeInstanceOf(Rules.SegmentAggregateCondition);
29
+ expect(await validate(instance)).toHaveLength(0);
30
+ });
31
+ });
@@ -0,0 +1,19 @@
1
+ import { CardAuditActorType } from "../enums/CardAuditActorType";
2
+ import { Status } from "../enums/Status";
3
+ /**
4
+ * Traza aditiva del último cambio de una tarjeta. Se guarda en `createdBy` (una sola vez, al
5
+ * crear la fila) y en `updatedBy` (se reescribe en cada cambio). El histórico completo vive en el
6
+ * datalake, no aquí. Las filas anteriores a este campo simplemente no lo traen.
7
+ */
8
+ export interface CardAuditInfo {
9
+ actorType: CardAuditActorType;
10
+ /** email (BACKOFFICE/AGENT), "<proveedor>:<event_type>" (WEBHOOK), componente (SYSTEM). Vacío para USER. */
11
+ actorId?: string;
12
+ /** Operación de negocio: CHANGE_STATUS, ACTIVATE, CREATE, REPLACE, SHIPPING_UPDATE, PIN_UPDATE, ... */
13
+ action: string;
14
+ /** Status anterior y nuevo, solo cuando la operación cambia el status. */
15
+ from?: Status;
16
+ to?: Status;
17
+ /** ISO 8601. */
18
+ at: string;
19
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,15 @@
1
+ /**
2
+ * Quién originó el último cambio de una tarjeta (`createdBy` / `updatedBy`).
3
+ *
4
+ * - USER: el dueño desde la app; no lleva actorId porque el directoryId ya está en la fila.
5
+ * - BACKOFFICE / AGENT: persona con sesión W4; actorId = email del AuthContext.
6
+ * - WEBHOOK: evento del emisor (CP, Pomelo); actorId = "<proveedor>:<event_type>".
7
+ * - SYSTEM: proceso interno sin usuario (colas, cron, callbacks); actorId = componente.
8
+ */
9
+ export declare enum CardAuditActorType {
10
+ USER = "USER",
11
+ BACKOFFICE = "BACKOFFICE",
12
+ AGENT = "AGENT",
13
+ WEBHOOK = "WEBHOOK",
14
+ SYSTEM = "SYSTEM"
15
+ }
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CardAuditActorType = void 0;
4
+ /**
5
+ * Quién originó el último cambio de una tarjeta (`createdBy` / `updatedBy`).
6
+ *
7
+ * - USER: el dueño desde la app; no lleva actorId porque el directoryId ya está en la fila.
8
+ * - BACKOFFICE / AGENT: persona con sesión W4; actorId = email del AuthContext.
9
+ * - WEBHOOK: evento del emisor (CP, Pomelo); actorId = "<proveedor>:<event_type>".
10
+ * - SYSTEM: proceso interno sin usuario (colas, cron, callbacks); actorId = componente.
11
+ */
12
+ var CardAuditActorType;
13
+ (function (CardAuditActorType) {
14
+ CardAuditActorType["USER"] = "USER";
15
+ CardAuditActorType["BACKOFFICE"] = "BACKOFFICE";
16
+ CardAuditActorType["AGENT"] = "AGENT";
17
+ CardAuditActorType["WEBHOOK"] = "WEBHOOK";
18
+ CardAuditActorType["SYSTEM"] = "SYSTEM";
19
+ })(CardAuditActorType || (exports.CardAuditActorType = CardAuditActorType = {}));
@@ -72,3 +72,5 @@ export * from './enums/CardReasonStatus';
72
72
  export * from './enums/KycReason';
73
73
  export * from './enums/PinChangedStatus';
74
74
  export * from './constants/LevelOneAutoIssuanceTags';
75
+ export * from './enums/CardAuditActorType';
76
+ export * from './dtos/CardAuditInfo';
package/bin/card/index.js CHANGED
@@ -91,3 +91,5 @@ __exportStar(require("./enums/CardReasonStatus"), exports);
91
91
  __exportStar(require("./enums/KycReason"), exports);
92
92
  __exportStar(require("./enums/PinChangedStatus"), exports);
93
93
  __exportStar(require("./constants/LevelOneAutoIssuanceTags"), exports);
94
+ __exportStar(require("./enums/CardAuditActorType"), exports);
95
+ __exportStar(require("./dtos/CardAuditInfo"), exports);
@@ -1,5 +1 @@
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;
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
- 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;
17
+ __exportStar(require("../../rules/constants/SegmentLimits"), exports);
@@ -1,8 +1 @@
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
- }
1
+ export * from '../../../../rules/dtos/population/PopulationSegmentDefinition';
@@ -1,40 +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.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);
17
+ __exportStar(require("../../../../rules/dtos/population/PopulationSegmentDefinition"), exports);
@@ -1,18 +1 @@
1
- import { SegmentAggregateFnEnum } from '../../../enums/SegmentAggregateFnEnum';
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 __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.SegmentAggregateCondition = 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 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
- import { JsonValue } from '../../../../common';
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 __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.SegmentColumnCondition = 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 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
- import { SegmentMatchEnum } from '../../../enums/SegmentMatchEnum';
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 __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.SegmentGroup = void 0;
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
- import { SegmentParamSourceEnum } from '../../../enums/SegmentParamSourceEnum';
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
- exports.SegmentParam = void 0;
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 declare class SegmentSchemaTableResponse {
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
- exports.SegmentSchemaResponse = exports.SegmentSchemaTableResponse = void 0;
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
- import { SegmentOperatorEnum } from '../../../enums/SegmentOperatorEnum';
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';