@imolko/ultra-ddd 1.0.9 → 1.0.10
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/dist-browser/event/domain-event/types.d.ts +17 -1
- package/dist-browser/event/domain-event/types.d.ts.map +1 -1
- package/dist-browser/event/domain-event/types.js.map +1 -1
- package/dist-browser/event/shape-evolution/conditions/index.d.ts +1 -1
- package/dist-browser/event/shape-evolution/index.d.ts +1 -0
- package/dist-browser/event/shape-evolution/index.d.ts.map +1 -1
- package/dist-browser/event/use-samples/file-uploaded/helpers/shape-evolution-map.type.d.ts +13 -0
- package/dist-browser/event/use-samples/file-uploaded/helpers/shape-evolution-map.type.d.ts.map +1 -1
- package/dist-browser/event/use-samples/file-uploaded/index.d.ts +1 -0
- package/dist-browser/event/use-samples/file-uploaded/index.d.ts.map +1 -1
- package/dist-node/event/domain-event/types.d.ts +17 -1
- package/dist-node/event/domain-event/types.d.ts.map +1 -1
- package/dist-node/event/domain-event/types.js.map +1 -1
- package/dist-node/event/shape-evolution/conditions/index.d.ts +1 -1
- package/dist-node/event/shape-evolution/index.d.ts +1 -0
- package/dist-node/event/shape-evolution/index.d.ts.map +1 -1
- package/dist-node/event/use-samples/file-uploaded/helpers/shape-evolution-map.type.d.ts +13 -0
- package/dist-node/event/use-samples/file-uploaded/helpers/shape-evolution-map.type.d.ts.map +1 -1
- package/dist-node/event/use-samples/file-uploaded/index.d.ts +1 -0
- package/dist-node/event/use-samples/file-uploaded/index.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -13,12 +13,21 @@ import { Props } from './props';
|
|
|
13
13
|
* a partir de un objeto con {version, conditions}
|
|
14
14
|
*
|
|
15
15
|
* Se utiliza para construir un mapa a partir de un Shape
|
|
16
|
+
*
|
|
17
|
+
* Se toma el input de las conditions,
|
|
18
|
+
* por lo que se debe utilizar cuándo se recibe el Payload
|
|
16
19
|
*/
|
|
17
20
|
type ExtractVersions<T> = T extends {
|
|
18
21
|
version: infer V;
|
|
19
22
|
conditions: infer C;
|
|
20
23
|
} ? V extends SemVerId ? C extends z.ZodType<unknown> ? {
|
|
21
|
-
[K in V]: z.
|
|
24
|
+
[K in V]: z.input<C>;
|
|
25
|
+
} : never : never : never;
|
|
26
|
+
type ExtractVersionsProps<T> = T extends {
|
|
27
|
+
version: infer V;
|
|
28
|
+
conditions: infer C;
|
|
29
|
+
} ? V extends SemVerId ? C extends z.ZodType<unknown> ? {
|
|
30
|
+
[K in V]: z.output<C>;
|
|
22
31
|
} : never : never : never;
|
|
23
32
|
/**
|
|
24
33
|
* Función de tipo para crear una unión de objetos,
|
|
@@ -33,6 +42,13 @@ type MergeTypeUnion<U> = (U extends any ? (x: U) => void : never) extends (x: in
|
|
|
33
42
|
type EvolutionVersions<ShapeHistorySpecific extends ShapeEvolutionPayload> = MergeTypeUnion<ExtractVersions<(ShapeHistorySpecific['evolution'][number]["shape"])>>;
|
|
34
43
|
type InitialVersion<ShapeHistorySpecific extends ShapeEvolutionPayload> = ExtractVersions<ShapeHistorySpecific['initial']>;
|
|
35
44
|
export type ShapeVersionMap<ShapeHistorySpecific extends ShapeEvolutionPayload> = EvolutionVersions<ShapeHistorySpecific> & InitialVersion<ShapeHistorySpecific>;
|
|
45
|
+
/**
|
|
46
|
+
* Tipos genéricos para construir un mapa de las versions soportadas
|
|
47
|
+
* en un ShapeEvolution payload
|
|
48
|
+
*/
|
|
49
|
+
type EvolutionVersionsProps<ShapeHistorySpecific extends ShapeEvolutionPayload> = MergeTypeUnion<ExtractVersionsProps<(ShapeHistorySpecific['evolution'][number]["shape"])>>;
|
|
50
|
+
type InitialVersionProps<ShapeHistorySpecific extends ShapeEvolutionPayload> = ExtractVersionsProps<ShapeHistorySpecific['initial']>;
|
|
51
|
+
export type ShapeVersionMapProps<ShapeHistorySpecific extends ShapeEvolutionPayload> = EvolutionVersionsProps<ShapeHistorySpecific> & InitialVersionProps<ShapeHistorySpecific>;
|
|
36
52
|
/**
|
|
37
53
|
* Tipo genérico para crear un payload de eventos con versiones específicos de datos
|
|
38
54
|
* La versión se debe suministrar para hacer las validaciones de shape en la data de la ocurrencia
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/event/domain-event/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,mBAAmB,CAAC;AACtC,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,qBAAqB,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/event/domain-event/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,mBAAmB,CAAC;AACtC,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,qBAAqB,EAAuB,MAAM,oBAAoB,CAAC;AAChF,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAGhC;;;;GAIG;AAIH;;;;;;;;GAQG;AACH,KAAK,eAAe,CAAC,CAAC,IACpB,CAAC,SAAS;IAAE,OAAO,EAAE,MAAM,CAAC,CAAC;IAAC,UAAU,EAAE,MAAM,CAAC,CAAA;CAAE,GAC/C,CAAC,SAAS,QAAQ,GAChB,CAAC,SAAS,CAAC,CAAC,OAAO,CAAC,OAAO,CAAC,GAC1B;KAAG,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC;CAAE,GACxB,KAAK,GACP,KAAK,GACP,KAAK,CAAC;AAEV,KAAK,oBAAoB,CAAC,CAAC,IACzB,CAAC,SAAS;IAAE,OAAO,EAAE,MAAM,CAAC,CAAC;IAAC,UAAU,EAAE,MAAM,CAAC,CAAA;CAAE,GAC/C,CAAC,SAAS,QAAQ,GAChB,CAAC,SAAS,CAAC,CAAC,OAAO,CAAC,OAAO,CAAC,GAC1B;KA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CAAC,SAAS,MAAM,kBAAkB,IAChC,IAAI,CAAC,OAAO,EAAE,WAAW,CAAC,GAAG;IAC/B,SAAS,EAAE,IAAI,CAAC,OAAO,CAAC,WAAW,CAAC,EAAE,MAAM,GAAG,mBAAmB,CAAC,GAAG;QACpE,iBAAiB,EAAE,CAAC,CAAC;QACrB,IAAI,EAAE,kBAAkB,CAAC,CAAC,CAAC,CAAC;KAC7B,CAAC;CACH,CAAC;AACF;;;;;;GAMG;AACH,MAAM,MAAM,wBAAwB,CAChC,kBAAkB,EAClB,CAAC,SAAS,OAAO,GAAG;IAAC,SAAS,EAAE;QAAE,iBAAiB,EAAE,QAAQ,CAAA;KAAE,CAAA;CAAC,IAElE,CAAC,SAAS;IAAE,SAAS,EAAE;QAAE,iBAAiB,EAAE,MAAM,CAAC,CAAA;KAAE,CAAA;CAAE,GACjD,CAAC,SAAS,MAAM,kBAAkB,GAChC,gBAAgB,CAAC,kBAAkB,EAAE,CAAC,CAAC,GACvC,KAAK,GACP,KAAK,CAAC;AAId,MAAM,MAAM,cAAc,CACxB,kBAAkB,EAClB,CAAC,SAAS,MAAM,kBAAkB,IAChC,IAAI,CAAC,KAAK,EAAE,WAAW,CAAC,GAAG;IAC7B,SAAS,EAAE,IAAI,CAAC,KAAK,CAAC,WAAW,CAAC,EAAE,MAAM,GAAG,mBAAmB,CAAC,GAAG;QAClE,iBAAiB,EAAE,CAAC,CAAC;QACrB,IAAI,EAAE,kBAAkB,CAAC,CAAC,CAAC,CAAC;KAC7B,CAAC;CACH,CAAC;;AAEF;;;;GAIG"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/event/domain-event/types.ts"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/event/domain-event/types.ts"],"names":[],"mappings":";AAmHA;;;;GAIG"}
|
|
@@ -281,7 +281,7 @@ export declare const conditions: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodEff
|
|
|
281
281
|
[key: string]: string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | any | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null;
|
|
282
282
|
} | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | any | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[];
|
|
283
283
|
};
|
|
284
|
-
}>, import("
|
|
284
|
+
}>, import("..").ShapeEvolutionProps, {
|
|
285
285
|
evolution: {
|
|
286
286
|
shape: {
|
|
287
287
|
version: string;
|
|
@@ -2,4 +2,5 @@ export * from './value-object';
|
|
|
2
2
|
export { Errors as ShapeEvolutionErrors } from './errors';
|
|
3
3
|
export { Payload as ShapeEvolutionPayload } from './payload';
|
|
4
4
|
export { Primitive as ShapeEvolutionPrimitive } from './primitive';
|
|
5
|
+
export { Props as ShapeEvolutionProps } from './props';
|
|
5
6
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/event/shape-evolution/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,OAAO,EAAE,MAAM,IAAI,oBAAoB,EAAE,MAAM,UAAU,CAAC;AAC1D,OAAO,EAAE,OAAO,IAAI,qBAAqB,EAAE,MAAM,WAAW,CAAC;AAC7D,OAAO,EAAE,SAAS,IAAI,uBAAuB,EAAE,MAAM,aAAa,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/event/shape-evolution/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,OAAO,EAAE,MAAM,IAAI,oBAAoB,EAAE,MAAM,UAAU,CAAC;AAC1D,OAAO,EAAE,OAAO,IAAI,qBAAqB,EAAE,MAAM,WAAW,CAAC;AAC7D,OAAO,EAAE,SAAS,IAAI,uBAAuB,EAAE,MAAM,aAAa,CAAC;AACnE,OAAO,EAAE,KAAK,IAAK,mBAAmB,EAAE,MAAM,SAAS,CAAC"}
|
|
@@ -1,10 +1,23 @@
|
|
|
1
1
|
import { ShapeVersionMap } from '../../../domain-event';
|
|
2
|
+
import { ShapeVersionMapProps } from '../../../domain-event/types';
|
|
2
3
|
import { definition } from '../definition';
|
|
3
4
|
/**
|
|
4
5
|
* Dado una versión específica de un ShapeEvolution,
|
|
5
6
|
* se construye un mapa con todas las versiones soportadas y sus condiciones.
|
|
6
7
|
*
|
|
8
|
+
* Este mapa contiene los payloads de cada version.
|
|
9
|
+
*
|
|
7
10
|
* Se incluye la versión inicial y todas las que se encuentren en evolution
|
|
8
11
|
*/
|
|
9
12
|
export type ShapeMap = ShapeVersionMap<typeof definition.shapeHistory>;
|
|
13
|
+
/**
|
|
14
|
+
* Dado una versión específica de un ShapeEvolution,
|
|
15
|
+
* se construye un mapa con todas las versiones soportadas y sus condiciones.
|
|
16
|
+
*
|
|
17
|
+
* Este mapa contiene los props de cada version.
|
|
18
|
+
* Se utiliza para tipear el contenido del campo data específico de cada version.
|
|
19
|
+
*
|
|
20
|
+
* Se incluye la versión inicial y todas las que se encuentren en evolution
|
|
21
|
+
*/
|
|
22
|
+
export type ShapeMapProps = ShapeVersionMapProps<typeof definition.shapeHistory>;
|
|
10
23
|
//# sourceMappingURL=shape-evolution-map.type.d.ts.map
|
package/dist-browser/event/use-samples/file-uploaded/helpers/shape-evolution-map.type.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shape-evolution-map.type.d.ts","sourceRoot":"","sources":["../../../../../src/event/use-samples/file-uploaded/helpers/shape-evolution-map.type.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AACxD,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAE3C
|
|
1
|
+
{"version":3,"file":"shape-evolution-map.type.d.ts","sourceRoot":"","sources":["../../../../../src/event/use-samples/file-uploaded/helpers/shape-evolution-map.type.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AACxD,OAAO,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;AACnE,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAE3C;;;;;;;GAOG;AACH,MAAM,MAAM,QAAQ,GAAG,eAAe,CAAC,OAAO,UAAU,CAAC,YAAY,CAAC,CAAC;AAEvE;;;;;;;;GAQG;AACH,MAAM,MAAM,aAAa,GAAG,oBAAoB,CAAC,OAAO,UAAU,CAAC,YAAY,CAAC,CAAC"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export { FileUploaded } from './event';
|
|
2
2
|
export { Payload as FileUploadedPayload } from './helpers/payload';
|
|
3
3
|
export { ShapeMap as FileUploadedShapeMap } from './helpers/shape-evolution-map.type';
|
|
4
|
+
export { ShapeMapProps as FileUploadedShapeMapProps } from './helpers/shape-evolution-map.type';
|
|
4
5
|
export { EventDefinition as FileUploadedEventDefinition } from './helpers/event-definition.type';
|
|
5
6
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/event/use-samples/file-uploaded/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AACvC,OAAO,EAAE,OAAO,IAAI,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AACnE,OAAO,EAAE,QAAQ,IAAI,oBAAoB,EAAE,MAAM,oCAAoC,CAAC;AACtF,OAAO,EAAE,eAAe,IAAI,2BAA2B,EAAE,MAAM,iCAAiC,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/event/use-samples/file-uploaded/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AACvC,OAAO,EAAE,OAAO,IAAI,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AACnE,OAAO,EAAE,QAAQ,IAAI,oBAAoB,EAAE,MAAM,oCAAoC,CAAC;AACtF,OAAO,EAAE,aAAa,IAAI,yBAAyB,EAAE,MAAM,oCAAoC,CAAC;AAChG,OAAO,EAAE,eAAe,IAAI,2BAA2B,EAAE,MAAM,iCAAiC,CAAC"}
|
|
@@ -13,12 +13,21 @@ import { Props } from './props';
|
|
|
13
13
|
* a partir de un objeto con {version, conditions}
|
|
14
14
|
*
|
|
15
15
|
* Se utiliza para construir un mapa a partir de un Shape
|
|
16
|
+
*
|
|
17
|
+
* Se toma el input de las conditions,
|
|
18
|
+
* por lo que se debe utilizar cuándo se recibe el Payload
|
|
16
19
|
*/
|
|
17
20
|
type ExtractVersions<T> = T extends {
|
|
18
21
|
version: infer V;
|
|
19
22
|
conditions: infer C;
|
|
20
23
|
} ? V extends SemVerId ? C extends z.ZodType<unknown> ? {
|
|
21
|
-
[K in V]: z.
|
|
24
|
+
[K in V]: z.input<C>;
|
|
25
|
+
} : never : never : never;
|
|
26
|
+
type ExtractVersionsProps<T> = T extends {
|
|
27
|
+
version: infer V;
|
|
28
|
+
conditions: infer C;
|
|
29
|
+
} ? V extends SemVerId ? C extends z.ZodType<unknown> ? {
|
|
30
|
+
[K in V]: z.output<C>;
|
|
22
31
|
} : never : never : never;
|
|
23
32
|
/**
|
|
24
33
|
* Función de tipo para crear una unión de objetos,
|
|
@@ -33,6 +42,13 @@ type MergeTypeUnion<U> = (U extends any ? (x: U) => void : never) extends (x: in
|
|
|
33
42
|
type EvolutionVersions<ShapeHistorySpecific extends ShapeEvolutionPayload> = MergeTypeUnion<ExtractVersions<(ShapeHistorySpecific['evolution'][number]["shape"])>>;
|
|
34
43
|
type InitialVersion<ShapeHistorySpecific extends ShapeEvolutionPayload> = ExtractVersions<ShapeHistorySpecific['initial']>;
|
|
35
44
|
export type ShapeVersionMap<ShapeHistorySpecific extends ShapeEvolutionPayload> = EvolutionVersions<ShapeHistorySpecific> & InitialVersion<ShapeHistorySpecific>;
|
|
45
|
+
/**
|
|
46
|
+
* Tipos genéricos para construir un mapa de las versions soportadas
|
|
47
|
+
* en un ShapeEvolution payload
|
|
48
|
+
*/
|
|
49
|
+
type EvolutionVersionsProps<ShapeHistorySpecific extends ShapeEvolutionPayload> = MergeTypeUnion<ExtractVersionsProps<(ShapeHistorySpecific['evolution'][number]["shape"])>>;
|
|
50
|
+
type InitialVersionProps<ShapeHistorySpecific extends ShapeEvolutionPayload> = ExtractVersionsProps<ShapeHistorySpecific['initial']>;
|
|
51
|
+
export type ShapeVersionMapProps<ShapeHistorySpecific extends ShapeEvolutionPayload> = EvolutionVersionsProps<ShapeHistorySpecific> & InitialVersionProps<ShapeHistorySpecific>;
|
|
36
52
|
/**
|
|
37
53
|
* Tipo genérico para crear un payload de eventos con versiones específicos de datos
|
|
38
54
|
* La versión se debe suministrar para hacer las validaciones de shape en la data de la ocurrencia
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/event/domain-event/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,mBAAmB,CAAC;AACtC,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,qBAAqB,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/event/domain-event/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,mBAAmB,CA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S;IAAE,SAAS,EAAE;QAAE,iBAAiB,EAAE,MAAM,CAAC,CAAA;KAAE,CAAA;CAAE,GACjD,CAAC,SAAS,MAAM,kBAAkB,GAChC,gBAAgB,CAAC,kBAAkB,EAAE,CAAC,CAAC,GACvC,KAAK,GACP,KAAK,CAAC;AAId,MAAM,MAAM,cAAc,CACxB,kBAAkB,EAClB,CAAC,SAAS,MAAM,kBAAkB,IAChC,IAAI,CAAC,KAAK,EAAE,WAAW,CAAC,GAAG;IAC7B,SAAS,EAAE,IAAI,CAAC,KAAK,CAAC,WAAW,CAAC,EAAE,MAAM,GAAG,mBAAmB,CAAC,GAAG;QAClE,iBAAiB,EAAE,CAAC,CAAC;QACrB,IAAI,EAAE,kBAAkB,CAAC,CAAC,CAAC,CAAC;KAC7B,CAAC;CACH,CAAC;;AAEF;;;;GAIG"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/event/domain-event/types.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/event/domain-event/types.ts"],"names":[],"mappings":";;AAmHA;;;;GAIG"}
|
|
@@ -281,7 +281,7 @@ export declare const conditions: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodEff
|
|
|
281
281
|
[key: string]: string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | any | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null;
|
|
282
282
|
} | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | any | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[];
|
|
283
283
|
};
|
|
284
|
-
}>, import("
|
|
284
|
+
}>, import("..").ShapeEvolutionProps, {
|
|
285
285
|
evolution: {
|
|
286
286
|
shape: {
|
|
287
287
|
version: string;
|
|
@@ -2,4 +2,5 @@ export * from './value-object';
|
|
|
2
2
|
export { Errors as ShapeEvolutionErrors } from './errors';
|
|
3
3
|
export { Payload as ShapeEvolutionPayload } from './payload';
|
|
4
4
|
export { Primitive as ShapeEvolutionPrimitive } from './primitive';
|
|
5
|
+
export { Props as ShapeEvolutionProps } from './props';
|
|
5
6
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/event/shape-evolution/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,OAAO,EAAE,MAAM,IAAI,oBAAoB,EAAE,MAAM,UAAU,CAAC;AAC1D,OAAO,EAAE,OAAO,IAAI,qBAAqB,EAAE,MAAM,WAAW,CAAC;AAC7D,OAAO,EAAE,SAAS,IAAI,uBAAuB,EAAE,MAAM,aAAa,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/event/shape-evolution/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,OAAO,EAAE,MAAM,IAAI,oBAAoB,EAAE,MAAM,UAAU,CAAC;AAC1D,OAAO,EAAE,OAAO,IAAI,qBAAqB,EAAE,MAAM,WAAW,CAAC;AAC7D,OAAO,EAAE,SAAS,IAAI,uBAAuB,EAAE,MAAM,aAAa,CAAC;AACnE,OAAO,EAAE,KAAK,IAAK,mBAAmB,EAAE,MAAM,SAAS,CAAC"}
|
|
@@ -1,10 +1,23 @@
|
|
|
1
1
|
import { ShapeVersionMap } from '../../../domain-event';
|
|
2
|
+
import { ShapeVersionMapProps } from '../../../domain-event/types';
|
|
2
3
|
import { definition } from '../definition';
|
|
3
4
|
/**
|
|
4
5
|
* Dado una versión específica de un ShapeEvolution,
|
|
5
6
|
* se construye un mapa con todas las versiones soportadas y sus condiciones.
|
|
6
7
|
*
|
|
8
|
+
* Este mapa contiene los payloads de cada version.
|
|
9
|
+
*
|
|
7
10
|
* Se incluye la versión inicial y todas las que se encuentren en evolution
|
|
8
11
|
*/
|
|
9
12
|
export type ShapeMap = ShapeVersionMap<typeof definition.shapeHistory>;
|
|
13
|
+
/**
|
|
14
|
+
* Dado una versión específica de un ShapeEvolution,
|
|
15
|
+
* se construye un mapa con todas las versiones soportadas y sus condiciones.
|
|
16
|
+
*
|
|
17
|
+
* Este mapa contiene los props de cada version.
|
|
18
|
+
* Se utiliza para tipear el contenido del campo data específico de cada version.
|
|
19
|
+
*
|
|
20
|
+
* Se incluye la versión inicial y todas las que se encuentren en evolution
|
|
21
|
+
*/
|
|
22
|
+
export type ShapeMapProps = ShapeVersionMapProps<typeof definition.shapeHistory>;
|
|
10
23
|
//# sourceMappingURL=shape-evolution-map.type.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shape-evolution-map.type.d.ts","sourceRoot":"","sources":["../../../../../src/event/use-samples/file-uploaded/helpers/shape-evolution-map.type.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AACxD,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAE3C
|
|
1
|
+
{"version":3,"file":"shape-evolution-map.type.d.ts","sourceRoot":"","sources":["../../../../../src/event/use-samples/file-uploaded/helpers/shape-evolution-map.type.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AACxD,OAAO,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;AACnE,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAE3C;;;;;;;GAOG;AACH,MAAM,MAAM,QAAQ,GAAG,eAAe,CAAC,OAAO,UAAU,CAAC,YAAY,CAAC,CAAC;AAEvE;;;;;;;;GAQG;AACH,MAAM,MAAM,aAAa,GAAG,oBAAoB,CAAC,OAAO,UAAU,CAAC,YAAY,CAAC,CAAC"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export { FileUploaded } from './event';
|
|
2
2
|
export { Payload as FileUploadedPayload } from './helpers/payload';
|
|
3
3
|
export { ShapeMap as FileUploadedShapeMap } from './helpers/shape-evolution-map.type';
|
|
4
|
+
export { ShapeMapProps as FileUploadedShapeMapProps } from './helpers/shape-evolution-map.type';
|
|
4
5
|
export { EventDefinition as FileUploadedEventDefinition } from './helpers/event-definition.type';
|
|
5
6
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/event/use-samples/file-uploaded/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AACvC,OAAO,EAAE,OAAO,IAAI,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AACnE,OAAO,EAAE,QAAQ,IAAI,oBAAoB,EAAE,MAAM,oCAAoC,CAAC;AACtF,OAAO,EAAE,eAAe,IAAI,2BAA2B,EAAE,MAAM,iCAAiC,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/event/use-samples/file-uploaded/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AACvC,OAAO,EAAE,OAAO,IAAI,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AACnE,OAAO,EAAE,QAAQ,IAAI,oBAAoB,EAAE,MAAM,oCAAoC,CAAC;AACtF,OAAO,EAAE,aAAa,IAAI,yBAAyB,EAAE,MAAM,oCAAoC,CAAC;AAChG,OAAO,EAAE,eAAe,IAAI,2BAA2B,EAAE,MAAM,iCAAiC,CAAC"}
|