@imolko/ultra-ddd 1.0.35 → 1.0.36-beta
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/aggregate-root/use-examples/product-woo/aggregate.d.ts +298 -0
- package/dist-browser/aggregate-root/use-examples/product-woo/aggregate.d.ts.map +1 -0
- package/dist-browser/aggregate-root/use-examples/product-woo/aggregate.js +19 -0
- package/dist-browser/aggregate-root/use-examples/product-woo/aggregate.js.map +1 -0
- package/dist-browser/aggregate-root/use-examples/product-woo/conditions.d.ts +85 -0
- package/dist-browser/aggregate-root/use-examples/product-woo/conditions.d.ts.map +1 -0
- package/dist-browser/aggregate-root/use-examples/product-woo/conditions.js +23 -0
- package/dist-browser/aggregate-root/use-examples/product-woo/conditions.js.map +1 -0
- package/dist-browser/aggregate-root/use-examples/product-woo/definition.d.ts +34 -0
- package/dist-browser/aggregate-root/use-examples/product-woo/definition.d.ts.map +1 -0
- package/dist-browser/aggregate-root/use-examples/product-woo/definition.js +57 -0
- package/dist-browser/aggregate-root/use-examples/product-woo/definition.js.map +1 -0
- package/dist-browser/aggregate-root/use-examples/product-woo/errors.d.ts +4 -0
- package/dist-browser/aggregate-root/use-examples/product-woo/errors.d.ts.map +1 -0
- package/dist-browser/aggregate-root/use-examples/product-woo/errors.js +2 -0
- package/dist-browser/aggregate-root/use-examples/product-woo/errors.js.map +1 -0
- package/dist-browser/aggregate-root/use-examples/product-woo/payload.d.ts +4 -0
- package/dist-browser/aggregate-root/use-examples/product-woo/payload.d.ts.map +1 -0
- package/dist-browser/aggregate-root/use-examples/product-woo/payload.js +2 -0
- package/dist-browser/aggregate-root/use-examples/product-woo/payload.js.map +1 -0
- package/dist-browser/aggregate-root/use-examples/product-woo/primitive.d.ts +7 -0
- package/dist-browser/aggregate-root/use-examples/product-woo/primitive.d.ts.map +1 -0
- package/dist-browser/aggregate-root/use-examples/product-woo/primitive.js +2 -0
- package/dist-browser/aggregate-root/use-examples/product-woo/primitive.js.map +1 -0
- package/dist-browser/aggregate-root/use-examples/product-woo/props.d.ts +8 -0
- package/dist-browser/aggregate-root/use-examples/product-woo/props.d.ts.map +1 -0
- package/dist-browser/aggregate-root/use-examples/product-woo/props.js +2 -0
- package/dist-browser/aggregate-root/use-examples/product-woo/props.js.map +1 -0
- package/dist-browser/aggregate-root/use-examples/product-woo/security-token.d.ts +2 -0
- package/dist-browser/aggregate-root/use-examples/product-woo/security-token.d.ts.map +1 -0
- package/dist-browser/aggregate-root/use-examples/product-woo/security-token.js +2 -0
- package/dist-browser/aggregate-root/use-examples/product-woo/security-token.js.map +1 -0
- package/dist-browser/aggregate-root/use-examples/product-woo/snapshot.d.ts +8 -0
- package/dist-browser/aggregate-root/use-examples/product-woo/snapshot.d.ts.map +1 -0
- package/dist-browser/aggregate-root/use-examples/product-woo/snapshot.js +2 -0
- package/dist-browser/aggregate-root/use-examples/product-woo/snapshot.js.map +1 -0
- package/dist-browser/entity/entity-base.d.ts.map +1 -1
- package/dist-browser/entity/entity-base.js +1 -0
- package/dist-browser/entity/entity-base.js.map +1 -1
- package/dist-browser/entity/identity/entity-id.d.ts +3 -3
- package/dist-browser/entity/identity/entity-id.d.ts.map +1 -1
- package/dist-browser/entity/identity/identity-strategy.enum.d.ts +16 -1
- package/dist-browser/entity/identity/identity-strategy.enum.d.ts.map +1 -1
- package/dist-browser/entity/identity/identity-strategy.enum.js +15 -0
- package/dist-browser/entity/identity/identity-strategy.enum.js.map +1 -1
- package/dist-browser/entity/identity/index.d.ts +3 -2
- package/dist-browser/entity/identity/index.d.ts.map +1 -1
- package/dist-browser/entity/identity/index.js +3 -2
- package/dist-browser/entity/identity/index.js.map +1 -1
- package/dist-browser/entity/identity/numericid/conditions.d.ts +5 -0
- package/dist-browser/entity/identity/numericid/conditions.d.ts.map +1 -0
- package/dist-browser/entity/identity/numericid/conditions.js +7 -0
- package/dist-browser/entity/identity/numericid/conditions.js.map +1 -0
- package/dist-browser/entity/identity/numericid/definition.d.ts +30 -0
- package/dist-browser/entity/identity/numericid/definition.d.ts.map +1 -0
- package/dist-browser/entity/identity/numericid/definition.js +53 -0
- package/dist-browser/entity/identity/numericid/definition.js.map +1 -0
- package/dist-browser/entity/identity/numericid/errors.d.ts +3 -0
- package/dist-browser/entity/identity/numericid/errors.d.ts.map +1 -0
- package/dist-browser/entity/identity/numericid/errors.js +2 -0
- package/dist-browser/entity/identity/numericid/errors.js.map +1 -0
- package/dist-browser/entity/identity/numericid/index.d.ts +5 -0
- package/dist-browser/entity/identity/numericid/index.d.ts.map +1 -0
- package/dist-browser/entity/identity/numericid/index.js +2 -0
- package/dist-browser/entity/identity/numericid/index.js.map +1 -0
- package/dist-browser/entity/identity/numericid/payload.d.ts +4 -0
- package/dist-browser/entity/identity/numericid/payload.d.ts.map +1 -0
- package/dist-browser/entity/identity/numericid/payload.js +2 -0
- package/dist-browser/entity/identity/numericid/payload.js.map +1 -0
- package/dist-browser/entity/identity/numericid/primitive.d.ts +2 -0
- package/dist-browser/entity/identity/numericid/primitive.d.ts.map +1 -0
- package/dist-browser/entity/identity/numericid/primitive.js +2 -0
- package/dist-browser/entity/identity/numericid/primitive.js.map +1 -0
- package/dist-browser/entity/identity/numericid/props.d.ts +7 -0
- package/dist-browser/entity/identity/numericid/props.d.ts.map +1 -0
- package/dist-browser/entity/identity/numericid/props.js +3 -0
- package/dist-browser/entity/identity/numericid/props.js.map +1 -0
- package/dist-browser/entity/identity/numericid/value-object.d.ts +102 -0
- package/dist-browser/entity/identity/numericid/value-object.d.ts.map +1 -0
- package/dist-browser/entity/identity/numericid/value-object.js +17 -0
- package/dist-browser/entity/identity/numericid/value-object.js.map +1 -0
- package/dist-browser/entity/identity/props-identity-base.d.ts.map +1 -1
- package/dist-browser/entity/use-examples/product-woo/conditions.d.ts +27 -0
- package/dist-browser/entity/use-examples/product-woo/conditions.d.ts.map +1 -0
- package/dist-browser/entity/use-examples/product-woo/conditions.js +19 -0
- package/dist-browser/entity/use-examples/product-woo/conditions.js.map +1 -0
- package/dist-browser/entity/use-examples/product-woo/definition.d.ts +25 -0
- package/dist-browser/entity/use-examples/product-woo/definition.d.ts.map +1 -0
- package/dist-browser/entity/use-examples/product-woo/definition.js +46 -0
- package/dist-browser/entity/use-examples/product-woo/definition.js.map +1 -0
- package/dist-browser/entity/use-examples/product-woo/entity.d.ts +254 -0
- package/dist-browser/entity/use-examples/product-woo/entity.d.ts.map +1 -0
- package/dist-browser/entity/use-examples/product-woo/entity.js +19 -0
- package/dist-browser/entity/use-examples/product-woo/entity.js.map +1 -0
- package/dist-browser/entity/use-examples/product-woo/errors.d.ts +4 -0
- package/dist-browser/entity/use-examples/product-woo/errors.d.ts.map +1 -0
- package/dist-browser/entity/use-examples/product-woo/errors.js +2 -0
- package/dist-browser/entity/use-examples/product-woo/errors.js.map +1 -0
- package/dist-browser/entity/use-examples/product-woo/payload.d.ts +4 -0
- package/dist-browser/entity/use-examples/product-woo/payload.d.ts.map +1 -0
- package/dist-browser/entity/use-examples/product-woo/payload.js +2 -0
- package/dist-browser/entity/use-examples/product-woo/payload.js.map +1 -0
- package/dist-browser/entity/use-examples/product-woo/primitive.d.ts +7 -0
- package/dist-browser/entity/use-examples/product-woo/primitive.d.ts.map +1 -0
- package/dist-browser/entity/use-examples/product-woo/primitive.js +2 -0
- package/dist-browser/entity/use-examples/product-woo/primitive.js.map +1 -0
- package/dist-browser/entity/use-examples/product-woo/props.d.ts +7 -0
- package/dist-browser/entity/use-examples/product-woo/props.d.ts.map +1 -0
- package/dist-browser/entity/use-examples/product-woo/props.js +2 -0
- package/dist-browser/entity/use-examples/product-woo/props.js.map +1 -0
- package/dist-browser/test/execute-sequentially/artifacts/aggregate.d.ts +390 -0
- package/dist-browser/test/execute-sequentially/artifacts/aggregate.d.ts.map +1 -0
- package/dist-browser/test/execute-sequentially/artifacts/aggregate.js +91 -0
- package/dist-browser/test/execute-sequentially/artifacts/aggregate.js.map +1 -0
- package/dist-browser/test/execute-sequentially/artifacts/entity.d.ts +313 -0
- package/dist-browser/test/execute-sequentially/artifacts/entity.d.ts.map +1 -0
- package/dist-browser/test/execute-sequentially/artifacts/entity.js +90 -0
- package/dist-browser/test/execute-sequentially/artifacts/entity.js.map +1 -0
- package/dist-browser/test/execute-sequentially/artifacts/index.d.ts +4 -0
- package/dist-browser/test/execute-sequentially/artifacts/index.d.ts.map +1 -0
- package/dist-browser/test/execute-sequentially/artifacts/index.js +4 -0
- package/dist-browser/test/execute-sequentially/artifacts/index.js.map +1 -0
- package/dist-browser/test/execute-sequentially/artifacts/value-object.d.ts +141 -0
- package/dist-browser/test/execute-sequentially/artifacts/value-object.d.ts.map +1 -0
- package/dist-browser/test/execute-sequentially/artifacts/value-object.js +76 -0
- package/dist-browser/test/execute-sequentially/artifacts/value-object.js.map +1 -0
- package/dist-node/aggregate-root/use-examples/product-woo/aggregate.d.ts +298 -0
- package/dist-node/aggregate-root/use-examples/product-woo/aggregate.d.ts.map +1 -0
- package/dist-node/aggregate-root/use-examples/product-woo/aggregate.js +22 -0
- package/dist-node/aggregate-root/use-examples/product-woo/aggregate.js.map +1 -0
- package/dist-node/aggregate-root/use-examples/product-woo/conditions.d.ts +85 -0
- package/dist-node/aggregate-root/use-examples/product-woo/conditions.d.ts.map +1 -0
- package/dist-node/aggregate-root/use-examples/product-woo/conditions.js +26 -0
- package/dist-node/aggregate-root/use-examples/product-woo/conditions.js.map +1 -0
- package/dist-node/aggregate-root/use-examples/product-woo/definition.d.ts +34 -0
- package/dist-node/aggregate-root/use-examples/product-woo/definition.d.ts.map +1 -0
- package/dist-node/aggregate-root/use-examples/product-woo/definition.js +60 -0
- package/dist-node/aggregate-root/use-examples/product-woo/definition.js.map +1 -0
- package/dist-node/aggregate-root/use-examples/product-woo/errors.d.ts +4 -0
- package/dist-node/aggregate-root/use-examples/product-woo/errors.d.ts.map +1 -0
- package/dist-node/aggregate-root/use-examples/product-woo/errors.js +3 -0
- package/dist-node/aggregate-root/use-examples/product-woo/errors.js.map +1 -0
- package/dist-node/aggregate-root/use-examples/product-woo/payload.d.ts +4 -0
- package/dist-node/aggregate-root/use-examples/product-woo/payload.d.ts.map +1 -0
- package/dist-node/aggregate-root/use-examples/product-woo/payload.js +3 -0
- package/dist-node/aggregate-root/use-examples/product-woo/payload.js.map +1 -0
- package/dist-node/aggregate-root/use-examples/product-woo/primitive.d.ts +7 -0
- package/dist-node/aggregate-root/use-examples/product-woo/primitive.d.ts.map +1 -0
- package/dist-node/aggregate-root/use-examples/product-woo/primitive.js +3 -0
- package/dist-node/aggregate-root/use-examples/product-woo/primitive.js.map +1 -0
- package/dist-node/aggregate-root/use-examples/product-woo/props.d.ts +8 -0
- package/dist-node/aggregate-root/use-examples/product-woo/props.d.ts.map +1 -0
- package/dist-node/aggregate-root/use-examples/product-woo/props.js +3 -0
- package/dist-node/aggregate-root/use-examples/product-woo/props.js.map +1 -0
- package/dist-node/aggregate-root/use-examples/product-woo/security-token.d.ts +2 -0
- package/dist-node/aggregate-root/use-examples/product-woo/security-token.d.ts.map +1 -0
- package/dist-node/aggregate-root/use-examples/product-woo/security-token.js +5 -0
- package/dist-node/aggregate-root/use-examples/product-woo/security-token.js.map +1 -0
- package/dist-node/aggregate-root/use-examples/product-woo/snapshot.d.ts +8 -0
- package/dist-node/aggregate-root/use-examples/product-woo/snapshot.d.ts.map +1 -0
- package/dist-node/aggregate-root/use-examples/product-woo/snapshot.js +3 -0
- package/dist-node/aggregate-root/use-examples/product-woo/snapshot.js.map +1 -0
- package/dist-node/entity/entity-base.d.ts.map +1 -1
- package/dist-node/entity/entity-base.js +1 -0
- package/dist-node/entity/entity-base.js.map +1 -1
- package/dist-node/entity/identity/entity-id.d.ts +3 -3
- package/dist-node/entity/identity/entity-id.d.ts.map +1 -1
- package/dist-node/entity/identity/identity-strategy.enum.d.ts +16 -1
- package/dist-node/entity/identity/identity-strategy.enum.d.ts.map +1 -1
- package/dist-node/entity/identity/identity-strategy.enum.js +15 -0
- package/dist-node/entity/identity/identity-strategy.enum.js.map +1 -1
- package/dist-node/entity/identity/index.d.ts +3 -2
- package/dist-node/entity/identity/index.d.ts.map +1 -1
- package/dist-node/entity/identity/index.js +3 -2
- package/dist-node/entity/identity/index.js.map +1 -1
- package/dist-node/entity/identity/numericid/conditions.d.ts +5 -0
- package/dist-node/entity/identity/numericid/conditions.d.ts.map +1 -0
- package/dist-node/entity/identity/numericid/conditions.js +10 -0
- package/dist-node/entity/identity/numericid/conditions.js.map +1 -0
- package/dist-node/entity/identity/numericid/definition.d.ts +30 -0
- package/dist-node/entity/identity/numericid/definition.d.ts.map +1 -0
- package/dist-node/entity/identity/numericid/definition.js +56 -0
- package/dist-node/entity/identity/numericid/definition.js.map +1 -0
- package/dist-node/entity/identity/numericid/errors.d.ts +3 -0
- package/dist-node/entity/identity/numericid/errors.d.ts.map +1 -0
- package/dist-node/entity/identity/numericid/errors.js +3 -0
- package/dist-node/entity/identity/numericid/errors.js.map +1 -0
- package/dist-node/entity/identity/numericid/index.d.ts +5 -0
- package/dist-node/entity/identity/numericid/index.d.ts.map +1 -0
- package/dist-node/entity/identity/numericid/index.js +6 -0
- package/dist-node/entity/identity/numericid/index.js.map +1 -0
- package/dist-node/entity/identity/numericid/payload.d.ts +4 -0
- package/dist-node/entity/identity/numericid/payload.d.ts.map +1 -0
- package/dist-node/entity/identity/numericid/payload.js +3 -0
- package/dist-node/entity/identity/numericid/payload.js.map +1 -0
- package/dist-node/entity/identity/numericid/primitive.d.ts +2 -0
- package/dist-node/entity/identity/numericid/primitive.d.ts.map +1 -0
- package/dist-node/entity/identity/numericid/primitive.js +3 -0
- package/dist-node/entity/identity/numericid/primitive.js.map +1 -0
- package/dist-node/entity/identity/numericid/props.d.ts +7 -0
- package/dist-node/entity/identity/numericid/props.d.ts.map +1 -0
- package/dist-node/entity/identity/numericid/props.js +4 -0
- package/dist-node/entity/identity/numericid/props.js.map +1 -0
- package/dist-node/entity/identity/numericid/value-object.d.ts +102 -0
- package/dist-node/entity/identity/numericid/value-object.d.ts.map +1 -0
- package/dist-node/entity/identity/numericid/value-object.js +20 -0
- package/dist-node/entity/identity/numericid/value-object.js.map +1 -0
- package/dist-node/entity/identity/props-identity-base.d.ts.map +1 -1
- package/dist-node/entity/use-examples/product-woo/conditions.d.ts +27 -0
- package/dist-node/entity/use-examples/product-woo/conditions.d.ts.map +1 -0
- package/dist-node/entity/use-examples/product-woo/conditions.js +22 -0
- package/dist-node/entity/use-examples/product-woo/conditions.js.map +1 -0
- package/dist-node/entity/use-examples/product-woo/definition.d.ts +25 -0
- package/dist-node/entity/use-examples/product-woo/definition.d.ts.map +1 -0
- package/dist-node/entity/use-examples/product-woo/definition.js +49 -0
- package/dist-node/entity/use-examples/product-woo/definition.js.map +1 -0
- package/dist-node/entity/use-examples/product-woo/entity.d.ts +254 -0
- package/dist-node/entity/use-examples/product-woo/entity.d.ts.map +1 -0
- package/dist-node/entity/use-examples/product-woo/entity.js +22 -0
- package/dist-node/entity/use-examples/product-woo/entity.js.map +1 -0
- package/dist-node/entity/use-examples/product-woo/errors.d.ts +4 -0
- package/dist-node/entity/use-examples/product-woo/errors.d.ts.map +1 -0
- package/dist-node/entity/use-examples/product-woo/errors.js +3 -0
- package/dist-node/entity/use-examples/product-woo/errors.js.map +1 -0
- package/dist-node/entity/use-examples/product-woo/payload.d.ts +4 -0
- package/dist-node/entity/use-examples/product-woo/payload.d.ts.map +1 -0
- package/dist-node/entity/use-examples/product-woo/payload.js +3 -0
- package/dist-node/entity/use-examples/product-woo/payload.js.map +1 -0
- package/dist-node/entity/use-examples/product-woo/primitive.d.ts +7 -0
- package/dist-node/entity/use-examples/product-woo/primitive.d.ts.map +1 -0
- package/dist-node/entity/use-examples/product-woo/primitive.js +3 -0
- package/dist-node/entity/use-examples/product-woo/primitive.js.map +1 -0
- package/dist-node/entity/use-examples/product-woo/props.d.ts +7 -0
- package/dist-node/entity/use-examples/product-woo/props.d.ts.map +1 -0
- package/dist-node/entity/use-examples/product-woo/props.js +3 -0
- package/dist-node/entity/use-examples/product-woo/props.js.map +1 -0
- package/dist-node/test/execute-sequentially/artifacts/aggregate.d.ts +390 -0
- package/dist-node/test/execute-sequentially/artifacts/aggregate.d.ts.map +1 -0
- package/dist-node/test/execute-sequentially/artifacts/aggregate.js +92 -0
- package/dist-node/test/execute-sequentially/artifacts/aggregate.js.map +1 -0
- package/dist-node/test/execute-sequentially/artifacts/entity.d.ts +313 -0
- package/dist-node/test/execute-sequentially/artifacts/entity.d.ts.map +1 -0
- package/dist-node/test/execute-sequentially/artifacts/entity.js +91 -0
- package/dist-node/test/execute-sequentially/artifacts/entity.js.map +1 -0
- package/dist-node/test/execute-sequentially/artifacts/index.d.ts +4 -0
- package/dist-node/test/execute-sequentially/artifacts/index.d.ts.map +1 -0
- package/dist-node/test/execute-sequentially/artifacts/index.js +20 -0
- package/dist-node/test/execute-sequentially/artifacts/index.js.map +1 -0
- package/dist-node/test/execute-sequentially/artifacts/value-object.d.ts +141 -0
- package/dist-node/test/execute-sequentially/artifacts/value-object.d.ts.map +1 -0
- package/dist-node/test/execute-sequentially/artifacts/value-object.js +77 -0
- package/dist-node/test/execute-sequentially/artifacts/value-object.js.map +1 -0
- package/package.json +2 -2
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"security-token.js","sourceRoot":"","sources":["../../../../src/aggregate-root/use-examples/product-woo/security-token.ts"],"names":[],"mappings":";;;AAAa,QAAA,cAAc,GAAG,sCAAsC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"snapshot.d.ts","sourceRoot":"","sources":["../../../../src/aggregate-root/use-examples/product-woo/snapshot.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AAEnD,MAAM,WAAW,QAAQ;IACvB,EAAE,EAAE,gBAAgB,CAAC;IACrB,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,OAAO,EAAE,MAAM,CAAC;CACjB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"snapshot.js","sourceRoot":"","sources":["../../../../src/aggregate-root/use-examples/product-woo/snapshot.ts"],"names":[],"mappings":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"entity-base.d.ts","sourceRoot":"","sources":["../../src/entity/entity-base.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAChE,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAGtC;;;;;;;;;;;;;GAaG;
|
|
1
|
+
{"version":3,"file":"entity-base.d.ts","sourceRoot":"","sources":["../../src/entity/entity-base.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAChE,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAGtC;;;;;;;;;;;;;GAaG;AAEH,8BAAsB,UAAU,CAC9B,MAAM,SAAS,QAAQ,EACvB,KAAK,SAAS,eAAe,CAAC,MAAM,CAAC,EACrC,SAAS,EACT,OAAO;IAEP;;;OAGG;IACH;;OAEG;IACH;;OAEG;IACH,SAAgB,GAAG,EAAE,MAAM,CAAC;IAC5B;;OAEG;IACI,KAAK,EAAE,QAAQ,CAAC,KAAK,CAAC,CAAC;IAC9B;;OAEG;gBACS,KAAK,EAAE,KAAK;IAYxB;;;;;OAKG;aACa,YAAY,IAAI,SAAS;IACzC;;;;;;OAMG;aACa,UAAU,IAAI,OAAO;IACrC;;;OAGG;IACI,MAAM,CACX,WAAW,SAAS,UAAU,CAAC,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,OAAO,CAAC,EACjE,IAAI,EAAE,WAAW,EAAE,MAAM,CAAC,EAAE,WAAW,GAAG,OAAO;IAenD,IAAW,EAAE,IAAI,MAAM,CAEtB;IACD;;;;;;OAMG;IACI,KAAK,CAAC,OAAO,EAAE,OAAO,CAAC,KAAK,CAAC,GAAG,IAAI;CAO5C"}
|
|
@@ -16,6 +16,7 @@ const add_getters_to_object_1 = require("../helpers/add-getters-to-object");
|
|
|
16
16
|
* Para garantizar que se incluyan implementamos mixin
|
|
17
17
|
* que se encargan de agregar los miembros estáticos.
|
|
18
18
|
*/
|
|
19
|
+
// interface IdType extends EntityId {}
|
|
19
20
|
class EntityBase {
|
|
20
21
|
/**
|
|
21
22
|
* Constructor
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"entity-base.js","sourceRoot":"","sources":["../../src/entity/entity-base.ts"],"names":[],"mappings":";;;AAAA,4EAAsE;AAKtE;;;;;;;;;;;;;GAaG;AACH,MAAsB,UAAU;IAqB9B;;OAEG;IACH,YAAY,KAAY;QACtB,IAAI,CAAC,GAAG,GAAG,KAAK,CAAC,EAAE,CAAC;QACpB,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB;;;;;;UAME;QACF,IAAA,0CAAkB,EAAC,KAAK,EAAE,IAAI,CAAC,CAAC;IAClC,CAAC;IAgBD;;;OAGG;IACI,MAAM,CAEQ,MAAoB;QACvC,IAAI,MAAM,IAAI,IAAI,IAAI,MAAM,IAAI,SAAS,EAAE,CAAC;YAC1C,OAAO,KAAK,CAAC;QACf,CAAC;QACD,IAAI,IAAI,KAAK,MAAM,EAAE,CAAC;YACpB,OAAO,IAAI,CAAC;QACd,CAAC;QACD,IAAI,CAAC,CAAC,MAAM,YAAY,UAAU,CAAC,EAAE,CAAC;YACpC,OAAO,KAAK,CAAC;QACf,CAAC;QACD,IAAI,MAAM,CAAC,EAAE,IAAI,IAAI,IAAI,MAAM,CAAC,EAAE,IAAI,SAAS,EAAE,CAAC;YAChD,OAAO,KAAK,CAAC;QACf,CAAC;QACD,OAAO,IAAI,CAAC,EAAE,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;IACnC,CAAC;IACD,IAAW,EAAE;QACX,OAAO,IAAI,CAAC,GAAG,CAAC;IAClB,CAAC;IACD;;;;;;OAMG;IACI,KAAK,CAAC,OAAuB;QAClC,MAAM,QAAQ,GAAU;YACtB,GAAG,IAAI,CAAC,KAAK;YACb,GAAG,OAAO;SACX,CAAC;QACF,OAAO,IAAK,IAAI,CAAC,WAA0C,CAAC,QAAQ,CAAC,CAAC;IACxE,CAAC;CACF;AAzFD,gCAyFC"}
|
|
1
|
+
{"version":3,"file":"entity-base.js","sourceRoot":"","sources":["../../src/entity/entity-base.ts"],"names":[],"mappings":";;;AAAA,4EAAsE;AAKtE;;;;;;;;;;;;;GAaG;AACH,uCAAuC;AACvC,MAAsB,UAAU;IAqB9B;;OAEG;IACH,YAAY,KAAY;QACtB,IAAI,CAAC,GAAG,GAAG,KAAK,CAAC,EAAE,CAAC;QACpB,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB;;;;;;UAME;QACF,IAAA,0CAAkB,EAAC,KAAK,EAAE,IAAI,CAAC,CAAC;IAClC,CAAC;IAgBD;;;OAGG;IACI,MAAM,CAEQ,MAAoB;QACvC,IAAI,MAAM,IAAI,IAAI,IAAI,MAAM,IAAI,SAAS,EAAE,CAAC;YAC1C,OAAO,KAAK,CAAC;QACf,CAAC;QACD,IAAI,IAAI,KAAK,MAAM,EAAE,CAAC;YACpB,OAAO,IAAI,CAAC;QACd,CAAC;QACD,IAAI,CAAC,CAAC,MAAM,YAAY,UAAU,CAAC,EAAE,CAAC;YACpC,OAAO,KAAK,CAAC;QACf,CAAC;QACD,IAAI,MAAM,CAAC,EAAE,IAAI,IAAI,IAAI,MAAM,CAAC,EAAE,IAAI,SAAS,EAAE,CAAC;YAChD,OAAO,KAAK,CAAC;QACf,CAAC;QACD,OAAO,IAAI,CAAC,EAAE,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;IACnC,CAAC;IACD,IAAW,EAAE;QACX,OAAO,IAAI,CAAC,GAAG,CAAC;IAClB,CAAC;IACD;;;;;;OAMG;IACI,KAAK,CAAC,OAAuB;QAClC,MAAM,QAAQ,GAAU;YACtB,GAAG,IAAI,CAAC,KAAK;YACb,GAAG,OAAO;SACX,CAAC;QACF,OAAO,IAAK,IAAI,CAAC,WAA0C,CAAC,QAAQ,CAAC,CAAC;IACxE,CAAC;CACF;AAzFD,gCAyFC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import { IdentityBaseInterface } from './identity-base.interface';
|
|
2
|
+
export interface EntityId extends IdentityBaseInterface<any, any, any> {
|
|
3
|
+
}
|
|
4
4
|
//# sourceMappingURL=entity-id.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"entity-id.d.ts","sourceRoot":"","sources":["../../../src/entity/identity/entity-id.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"entity-id.d.ts","sourceRoot":"","sources":["../../../src/entity/identity/entity-id.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,2BAA2B,CAAC;AAElE,MAAM,WAAW,QAAS,SAAQ,qBAAqB,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC;CAAG"}
|
|
@@ -1,8 +1,23 @@
|
|
|
1
1
|
export declare enum IdentityStrategy {
|
|
2
|
+
/**
|
|
3
|
+
* Library to generate Universal Unique Identifiers, secure and compatible with the RFC.
|
|
4
|
+
* @link https://github.com/uuidjs/uuid
|
|
5
|
+
*/
|
|
2
6
|
UUID = "UUID",
|
|
3
7
|
HYBRID = "HYBRID",
|
|
8
|
+
/**
|
|
9
|
+
* A tiny, secure, URL-friendly, unique string ID generator for JavaScript.
|
|
10
|
+
* @link https://github.com/ai/nanoid
|
|
11
|
+
*/
|
|
4
12
|
NANOID = "NANOID",
|
|
13
|
+
/**
|
|
14
|
+
* Unique identifier that is designed to be easy for people to read, remember, pronounce, and type.
|
|
15
|
+
*/
|
|
5
16
|
HUMANID = "HUMANID",
|
|
6
|
-
CUSTOMID = "CUSTOMID"
|
|
17
|
+
CUSTOMID = "CUSTOMID",
|
|
18
|
+
/**
|
|
19
|
+
* Numeric identifier
|
|
20
|
+
*/
|
|
21
|
+
NUMERICID = "NUMERICID"
|
|
7
22
|
}
|
|
8
23
|
//# sourceMappingURL=identity-strategy.enum.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"identity-strategy.enum.d.ts","sourceRoot":"","sources":["../../../src/entity/identity/identity-strategy.enum.ts"],"names":[],"mappings":"AAAA,oBAAY,gBAAgB;IAC1B,IAAI,SAAS;IACb,MAAM,WAAW;IACjB,MAAM,WAAW;IACjB,OAAO,YAAY;IACnB,QAAQ,aAAa;
|
|
1
|
+
{"version":3,"file":"identity-strategy.enum.d.ts","sourceRoot":"","sources":["../../../src/entity/identity/identity-strategy.enum.ts"],"names":[],"mappings":"AAAA,oBAAY,gBAAgB;IAC1B;;;OAGG;IACH,IAAI,SAAS;IACb,MAAM,WAAW;IACjB;;;OAGG;IACH,MAAM,WAAW;IACjB;;OAEG;IACH,OAAO,YAAY;IACnB,QAAQ,aAAa;IACrB;;OAEG;IACH,SAAS,cAAc;CACxB"}
|
|
@@ -3,10 +3,25 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.IdentityStrategy = void 0;
|
|
4
4
|
var IdentityStrategy;
|
|
5
5
|
(function (IdentityStrategy) {
|
|
6
|
+
/**
|
|
7
|
+
* Library to generate Universal Unique Identifiers, secure and compatible with the RFC.
|
|
8
|
+
* @link https://github.com/uuidjs/uuid
|
|
9
|
+
*/
|
|
6
10
|
IdentityStrategy["UUID"] = "UUID";
|
|
7
11
|
IdentityStrategy["HYBRID"] = "HYBRID";
|
|
12
|
+
/**
|
|
13
|
+
* A tiny, secure, URL-friendly, unique string ID generator for JavaScript.
|
|
14
|
+
* @link https://github.com/ai/nanoid
|
|
15
|
+
*/
|
|
8
16
|
IdentityStrategy["NANOID"] = "NANOID";
|
|
17
|
+
/**
|
|
18
|
+
* Unique identifier that is designed to be easy for people to read, remember, pronounce, and type.
|
|
19
|
+
*/
|
|
9
20
|
IdentityStrategy["HUMANID"] = "HUMANID";
|
|
10
21
|
IdentityStrategy["CUSTOMID"] = "CUSTOMID";
|
|
22
|
+
/**
|
|
23
|
+
* Numeric identifier
|
|
24
|
+
*/
|
|
25
|
+
IdentityStrategy["NUMERICID"] = "NUMERICID";
|
|
11
26
|
})(IdentityStrategy || (exports.IdentityStrategy = IdentityStrategy = {}));
|
|
12
27
|
//# sourceMappingURL=identity-strategy.enum.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"identity-strategy.enum.js","sourceRoot":"","sources":["../../../src/entity/identity/identity-strategy.enum.ts"],"names":[],"mappings":";;;AAAA,IAAY,
|
|
1
|
+
{"version":3,"file":"identity-strategy.enum.js","sourceRoot":"","sources":["../../../src/entity/identity/identity-strategy.enum.ts"],"names":[],"mappings":";;;AAAA,IAAY,gBAqBX;AArBD,WAAY,gBAAgB;IAC1B;;;OAGG;IACH,iCAAa,CAAA;IACb,qCAAiB,CAAA;IACjB;;;OAGG;IACH,qCAAiB,CAAA;IACjB;;OAEG;IACH,uCAAmB,CAAA;IACnB,yCAAqB,CAAA;IACrB;;OAEG;IACH,2CAAuB,CAAA;AACzB,CAAC,EArBW,gBAAgB,gCAAhB,gBAAgB,QAqB3B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/entity/identity/index.ts"],"names":[],"mappings":"AAAA,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/entity/identity/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,WAAW,CAAC;AAC1B,cAAc,aAAa,CAAC;AAC5B,cAAc,QAAQ,CAAC"}
|
|
@@ -14,7 +14,8 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./uuid"), exports);
|
|
18
|
-
__exportStar(require("./identity-base.interface"), exports);
|
|
19
17
|
__exportStar(require("./entity-id"), exports);
|
|
18
|
+
__exportStar(require("./humanid"), exports);
|
|
19
|
+
__exportStar(require("./numericid"), exports);
|
|
20
|
+
__exportStar(require("./uuid"), exports);
|
|
20
21
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/entity/identity/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/entity/identity/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8CAA4B;AAC5B,4CAA0B;AAC1B,8CAA4B;AAC5B,yCAAuB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"conditions.d.ts","sourceRoot":"","sources":["../../../../src/entity/identity/numericid/conditions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,mBAAmB,CAAC;AAEtC,eAAO,MAAM,UAAU;;UAIoB,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.conditions = void 0;
|
|
4
|
+
const ultra_v8n_1 = require("@imolko/ultra-v8n");
|
|
5
|
+
exports.conditions = ultra_v8n_1.z
|
|
6
|
+
.number()
|
|
7
|
+
.int()
|
|
8
|
+
.nonnegative()
|
|
9
|
+
.transform(id => ({ id: id.toString() }));
|
|
10
|
+
//# sourceMappingURL=conditions.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"conditions.js","sourceRoot":"","sources":["../../../../src/entity/identity/numericid/conditions.ts"],"names":[],"mappings":";;;AAAA,iDAAsC;AAEzB,QAAA,UAAU,GAAG,aAAC;KACtB,MAAM,EAAE;KACR,GAAG,EAAE;KACL,WAAW,EAAE;KACb,SAAS,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,EAAC,EAAE,EAAE,EAAE,CAAC,QAAQ,EAAE,EAAC,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { ZodSchema, ZodTypeDef } from '@imolko/ultra-v8n';
|
|
2
|
+
import { IdentityStrategy } from '../identity-strategy.enum';
|
|
3
|
+
import { IdentityBase } from '../identity-base.class';
|
|
4
|
+
import { Props } from './props';
|
|
5
|
+
import { Primitive } from './primitive';
|
|
6
|
+
import { Payload } from './payload';
|
|
7
|
+
export declare class Definition extends IdentityBase<Props, Primitive, Payload> {
|
|
8
|
+
/**
|
|
9
|
+
* Miembros estáticos
|
|
10
|
+
*/
|
|
11
|
+
static NAME: string;
|
|
12
|
+
strategy: IdentityStrategy.NUMERICID;
|
|
13
|
+
static readonly conditions: ZodSchema<Props, ZodTypeDef, Payload>;
|
|
14
|
+
/**
|
|
15
|
+
* Devuelve las propiedades serializadas para exponer en la aplicacion
|
|
16
|
+
* @returns {Primitive}
|
|
17
|
+
*/
|
|
18
|
+
getPrimitive(): Primitive;
|
|
19
|
+
/**
|
|
20
|
+
* Devuelve las propiedades serializadas que permite las reconstruccion de la entidad
|
|
21
|
+
* @returns {Payload}
|
|
22
|
+
*/
|
|
23
|
+
getPayload(): Payload;
|
|
24
|
+
/**
|
|
25
|
+
* Genera una lista de ids
|
|
26
|
+
* @param {number} size Tamaño de la lista
|
|
27
|
+
*/
|
|
28
|
+
static generateList(size: number): Primitive[];
|
|
29
|
+
}
|
|
30
|
+
//# sourceMappingURL=definition.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"definition.d.ts","sourceRoot":"","sources":["../../../../src/entity/identity/numericid/definition.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAE1D,OAAO,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAC7D,OAAO,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AACtD,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEpC,qBACa,UAAW,SAAQ,YAAY,CAAC,KAAK,EAAE,SAAS,EAAE,OAAO,CAAC;IACrE;;OAEG;IACH,MAAM,CAAC,IAAI,SAAe;IAC1B,QAAQ,EAAE,gBAAgB,CAAC,SAAS,CAA8B;IAClE,MAAM,CAAC,QAAQ,CAAC,UAAU,EAAE,SAAS,CAAC,KAAK,EAAE,UAAU,EAAE,OAAO,CAAC,CAAc;IAC/E;;;OAGG;IACI,YAAY,IAAI,SAAS;IAGhC;;;OAGG;IACI,UAAU,IAAI,OAAO;IAG5B;;;OAGG;WACW,YAAY,CAAC,IAAI,EAAE,MAAM,GAAG,SAAS,EAAE;CAStD"}
|
|
@@ -0,0 +1,56 @@
|
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
+
exports.Definition = void 0;
|
|
10
|
+
const value_object_1 = require("../../../value-object");
|
|
11
|
+
const identity_strategy_enum_1 = require("../identity-strategy.enum");
|
|
12
|
+
const identity_base_class_1 = require("../identity-base.class");
|
|
13
|
+
const conditions_1 = require("./conditions");
|
|
14
|
+
let Definition = class Definition extends identity_base_class_1.IdentityBase {
|
|
15
|
+
constructor() {
|
|
16
|
+
super(...arguments);
|
|
17
|
+
this.strategy = identity_strategy_enum_1.IdentityStrategy.NUMERICID;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Devuelve las propiedades serializadas para exponer en la aplicacion
|
|
21
|
+
* @returns {Primitive}
|
|
22
|
+
*/
|
|
23
|
+
getPrimitive() {
|
|
24
|
+
return Number(this.props.id);
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Devuelve las propiedades serializadas que permite las reconstruccion de la entidad
|
|
28
|
+
* @returns {Payload}
|
|
29
|
+
*/
|
|
30
|
+
getPayload() {
|
|
31
|
+
return Number(this.props.id);
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Genera una lista de ids
|
|
35
|
+
* @param {number} size Tamaño de la lista
|
|
36
|
+
*/
|
|
37
|
+
static generateList(size) {
|
|
38
|
+
const limit = size * 2;
|
|
39
|
+
const uniques = new Set();
|
|
40
|
+
while (uniques.size < size) {
|
|
41
|
+
const randomNum = Math.floor(Math.random() * limit) + 1;
|
|
42
|
+
uniques.add(randomNum);
|
|
43
|
+
}
|
|
44
|
+
return Array.from(uniques);
|
|
45
|
+
}
|
|
46
|
+
};
|
|
47
|
+
exports.Definition = Definition;
|
|
48
|
+
/**
|
|
49
|
+
* Miembros estáticos
|
|
50
|
+
*/
|
|
51
|
+
Definition.NAME = 'numericid';
|
|
52
|
+
Definition.conditions = conditions_1.conditions;
|
|
53
|
+
exports.Definition = Definition = __decorate([
|
|
54
|
+
(0, value_object_1.isVOComplete)()
|
|
55
|
+
], Definition);
|
|
56
|
+
//# sourceMappingURL=definition.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"definition.js","sourceRoot":"","sources":["../../../../src/entity/identity/numericid/definition.ts"],"names":[],"mappings":";;;;;;;;;AACA,wDAAqD;AACrD,sEAA6D;AAC7D,gEAAsD;AAGtD,6CAA0C;AAInC,IAAM,UAAU,GAAhB,MAAM,UAAW,SAAQ,kCAAuC;IAAhE;;QAKL,aAAQ,GAA+B,yCAAgB,CAAC,SAAS,CAAC;IA6BpE,CAAC;IA3BC;;;OAGG;IACI,YAAY;QACjB,OAAO,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;IAC/B,CAAC;IACD;;;OAGG;IACI,UAAU;QACf,OAAO,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;IAC/B,CAAC;IACD;;;OAGG;IACI,MAAM,CAAC,YAAY,CAAC,IAAY;QACrC,MAAM,KAAK,GAAG,IAAI,GAAG,CAAC,CAAC;QACvB,MAAM,OAAO,GAAG,IAAI,GAAG,EAAU,CAAC;QAClC,OAAO,OAAO,CAAC,IAAI,GAAG,IAAI,EAAE,CAAC;YACzB,MAAM,SAAS,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,EAAE,GAAG,KAAK,CAAC,GAAG,CAAC,CAAC;YACxD,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;QAC3B,CAAC;QACD,OAAO,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAC7B,CAAC;;AAjCU,gCAAU;AACrB;;GAEG;AACI,eAAI,GAAG,WAAW,AAAd,CAAe;AAEV,qBAAU,GAA0C,uBAAU,AAApD,CAAqD;qBANpE,UAAU;IADtB,IAAA,2BAAY,GAAE;GACF,UAAU,CAkCtB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../../../src/entity/identity/numericid/errors.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,gBAAgB,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAExF,MAAM,MAAM,MAAM,GAAG,kBAAkB,GAAG,aAAa,GAAG,gBAAgB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"errors.js","sourceRoot":"","sources":["../../../../src/entity/identity/numericid/errors.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/entity/identity/numericid/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAC3C,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,UAAU,CAAC;AACrD,OAAO,EAAE,SAAS,IAAI,kBAAkB,EAAE,MAAM,aAAa,CAAC;AAC9D,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAC,MAAM,WAAW,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Numericid = void 0;
|
|
4
|
+
var value_object_1 = require("./value-object");
|
|
5
|
+
Object.defineProperty(exports, "Numericid", { enumerable: true, get: function () { return value_object_1.Numericid; } });
|
|
6
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/entity/identity/numericid/index.ts"],"names":[],"mappings":";;;AAAA,+CAA2C;AAAlC,yGAAA,SAAS,OAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payload.d.ts","sourceRoot":"","sources":["../../../../src/entity/identity/numericid/payload.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,mBAAmB,CAAC;AACtC,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE1C,MAAM,MAAM,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,UAAU,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payload.js","sourceRoot":"","sources":["../../../../src/entity/identity/numericid/payload.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"primitive.d.ts","sourceRoot":"","sources":["../../../../src/entity/identity/numericid/primitive.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,SAAS,GAAG,MAAM,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"primitive.js","sourceRoot":"","sources":["../../../../src/entity/identity/numericid/primitive.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"props.d.ts","sourceRoot":"","sources":["../../../../src/entity/identity/numericid/props.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,WAAW,KAAK;IACpB,EAAE,EAAE,MAAM,CAAC;CACZ"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"props.js","sourceRoot":"","sources":["../../../../src/entity/identity/numericid/props.ts"],"names":[],"mappings":";;AAKC,CAAC"}
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
import { Props } from './props';
|
|
2
|
+
import { Errors } from './errors';
|
|
3
|
+
import { Definition } from './definition';
|
|
4
|
+
declare const Numericid_base: ((abstract new (...args: any[]) => {
|
|
5
|
+
clone(changes: Partial<Props>): /*elided*/ any;
|
|
6
|
+
readonly props: Readonly<Props>;
|
|
7
|
+
equals<Implemented extends import("../../../value-object").ValueObjectBase<Props, number, number>>(this: Implemented, other?: Implemented | undefined): boolean;
|
|
8
|
+
getPrimitive(): number;
|
|
9
|
+
getPayload(): number;
|
|
10
|
+
}) & {
|
|
11
|
+
factoryUsed: boolean;
|
|
12
|
+
rules<Implemented extends /*elided*/ any & {
|
|
13
|
+
new (...args: any[]): {
|
|
14
|
+
readonly props: Readonly<Props>;
|
|
15
|
+
equals<Implemented_1 extends import("../../../value-object").ValueObjectBase<Props, number, number>>(this: Implemented_1, other?: Implemented_1 | undefined): boolean;
|
|
16
|
+
clone(changes: Partial<Props>): /*elided*/ any;
|
|
17
|
+
getPrimitive(): number;
|
|
18
|
+
getPayload(): number;
|
|
19
|
+
} & Props;
|
|
20
|
+
prototype: {
|
|
21
|
+
readonly props: Readonly<Props>;
|
|
22
|
+
equals<Implemented_1 extends import("../../../value-object").ValueObjectBase<Props, number, number>>(this: Implemented_1, other?: Implemented_1 | undefined): boolean;
|
|
23
|
+
clone(changes: Partial<Props>): /*elided*/ any;
|
|
24
|
+
getPrimitive(): number;
|
|
25
|
+
getPayload(): number;
|
|
26
|
+
} & Props;
|
|
27
|
+
} & ((abstract new (...args: any[]) => {
|
|
28
|
+
readonly props: Readonly<Props>;
|
|
29
|
+
equals<Implemented_1 extends import("../../../value-object").ValueObjectBase<Props, number, number>>(this: Implemented_1, other?: Implemented_1 | undefined): boolean;
|
|
30
|
+
clone(changes: Partial<Props>): /*elided*/ any;
|
|
31
|
+
getPrimitive(): number;
|
|
32
|
+
getPayload(): number;
|
|
33
|
+
}) & {
|
|
34
|
+
conditions: import("zod").ZodType;
|
|
35
|
+
builder?(value: Props): import("../../../value-object").ValueObjectBase<Props, number, number>;
|
|
36
|
+
NAME: string;
|
|
37
|
+
}) & typeof Definition>(this: Implemented): import("zod").ZodType<InstanceType<Implemented>, import("zod").ZodTypeDef, number>;
|
|
38
|
+
of<Implemented extends /*elided*/ any & {
|
|
39
|
+
new (...args: any[]): {
|
|
40
|
+
readonly props: Readonly<Props>;
|
|
41
|
+
equals<Implemented_1 extends import("../../../value-object").ValueObjectBase<Props, number, number>>(this: Implemented_1, other?: Implemented_1 | undefined): boolean;
|
|
42
|
+
clone(changes: Partial<Props>): /*elided*/ any;
|
|
43
|
+
getPrimitive(): number;
|
|
44
|
+
getPayload(): number;
|
|
45
|
+
} & Props;
|
|
46
|
+
prototype: {
|
|
47
|
+
readonly props: Readonly<Props>;
|
|
48
|
+
equals<Implemented_1 extends import("../../../value-object").ValueObjectBase<Props, number, number>>(this: Implemented_1, other?: Implemented_1 | undefined): boolean;
|
|
49
|
+
clone(changes: Partial<Props>): /*elided*/ any;
|
|
50
|
+
getPrimitive(): number;
|
|
51
|
+
getPayload(): number;
|
|
52
|
+
} & Props;
|
|
53
|
+
} & ((abstract new (...args: any[]) => {
|
|
54
|
+
readonly props: Readonly<Props>;
|
|
55
|
+
equals<Implemented_1 extends import("../../../value-object").ValueObjectBase<Props, number, number>>(this: Implemented_1, other?: Implemented_1 | undefined): boolean;
|
|
56
|
+
clone(changes: Partial<Props>): /*elided*/ any;
|
|
57
|
+
getPrimitive(): number;
|
|
58
|
+
getPayload(): number;
|
|
59
|
+
}) & {
|
|
60
|
+
conditions: import("zod").ZodType;
|
|
61
|
+
builder?(value: Props): import("../../../value-object").ValueObjectBase<Props, number, number>;
|
|
62
|
+
NAME: string;
|
|
63
|
+
}) & typeof Definition>(this: Implemented, payload: number): import("@imolko/ultra-result").Validation<Errors, InstanceType<Implemented>>;
|
|
64
|
+
builder(props: Props): {
|
|
65
|
+
clone(changes: Partial<Props>): /*elided*/ any;
|
|
66
|
+
readonly props: Readonly<Props>;
|
|
67
|
+
equals<Implemented extends import("../../../value-object").ValueObjectBase<Props, number, number>>(this: Implemented, other?: Implemented | undefined): boolean;
|
|
68
|
+
getPrimitive(): number;
|
|
69
|
+
getPayload(): number;
|
|
70
|
+
};
|
|
71
|
+
conditions: import("zod").ZodType;
|
|
72
|
+
NAME: string;
|
|
73
|
+
}) & {
|
|
74
|
+
new (...args: any[]): {
|
|
75
|
+
readonly props: Readonly<Props>;
|
|
76
|
+
equals<Implemented extends import("../../../value-object").ValueObjectBase<Props, number, number>>(this: Implemented, other?: Implemented | undefined): boolean;
|
|
77
|
+
clone(changes: Partial<Props>): /*elided*/ any;
|
|
78
|
+
getPrimitive(): number;
|
|
79
|
+
getPayload(): number;
|
|
80
|
+
} & Props;
|
|
81
|
+
prototype: {
|
|
82
|
+
readonly props: Readonly<Props>;
|
|
83
|
+
equals<Implemented extends import("../../../value-object").ValueObjectBase<Props, number, number>>(this: Implemented, other?: Implemented | undefined): boolean;
|
|
84
|
+
clone(changes: Partial<Props>): /*elided*/ any;
|
|
85
|
+
getPrimitive(): number;
|
|
86
|
+
getPayload(): number;
|
|
87
|
+
} & Props;
|
|
88
|
+
} & ((abstract new (...args: any[]) => {
|
|
89
|
+
readonly props: Readonly<Props>;
|
|
90
|
+
equals<Implemented extends import("../../../value-object").ValueObjectBase<Props, number, number>>(this: Implemented, other?: Implemented | undefined): boolean;
|
|
91
|
+
clone(changes: Partial<Props>): /*elided*/ any;
|
|
92
|
+
getPrimitive(): number;
|
|
93
|
+
getPayload(): number;
|
|
94
|
+
}) & {
|
|
95
|
+
conditions: import("zod").ZodType;
|
|
96
|
+
builder?(value: Props): import("../../../value-object").ValueObjectBase<Props, number, number>;
|
|
97
|
+
NAME: string;
|
|
98
|
+
}) & typeof Definition;
|
|
99
|
+
export declare class Numericid extends Numericid_base {
|
|
100
|
+
}
|
|
101
|
+
export {};
|
|
102
|
+
//# sourceMappingURL=value-object.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"value-object.d.ts","sourceRoot":"","sources":["../../../../src/entity/identity/numericid/value-object.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAElC,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAI1C,qBAGa,SAAU,SAAQ,cAMlB;CAAG"}
|
|
@@ -0,0 +1,20 @@
|
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
+
exports.Numericid = void 0;
|
|
10
|
+
const value_object_1 = require("../../../value-object");
|
|
11
|
+
const definition_1 = require("./definition");
|
|
12
|
+
let Numericid = class Numericid extends (0, value_object_1.ValueObjectWithPublicApi)(definition_1.Definition) {
|
|
13
|
+
};
|
|
14
|
+
exports.Numericid = Numericid;
|
|
15
|
+
exports.Numericid = Numericid = __decorate([
|
|
16
|
+
(0, value_object_1.RegisterValueObject)({
|
|
17
|
+
description: "Identidad de una entidad o agregado en numeros"
|
|
18
|
+
})
|
|
19
|
+
], Numericid);
|
|
20
|
+
//# sourceMappingURL=value-object.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"value-object.js","sourceRoot":"","sources":["../../../../src/entity/identity/numericid/value-object.ts"],"names":[],"mappings":";;;;;;;;;AAAA,wDAG+B;AAK/B,6CAA0C;AAOnC,IAAM,SAAS,GAAf,MAAM,SAAU,SAAQ,IAAA,uCAAwB,EAMrD,uBAAU,CAAC;CAAG,CAAA;AANH,8BAAS;oBAAT,SAAS;IAHrB,IAAA,kCAAmB,EAAC;QACnB,WAAW,EAAE,gDAAgD;KAC9D,CAAC;GACW,SAAS,CAMN"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"props-identity-base.d.ts","sourceRoot":"","sources":["../../../src/entity/identity/props-identity-base.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,iBAAiB,GAAG;IAC9B,EAAE,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"props-identity-base.d.ts","sourceRoot":"","sources":["../../../src/entity/identity/props-identity-base.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,iBAAiB,GAAG;IAC9B,EAAE,EAAE,MAAM,CAAC;CACZ,CAAA"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { z } from '@imolko/ultra-v8n';
|
|
2
|
+
import { Numericid } from '../../identity';
|
|
3
|
+
export declare const conditions: z.ZodObject<{
|
|
4
|
+
/**
|
|
5
|
+
* A unique identifier for the product.
|
|
6
|
+
*/
|
|
7
|
+
id: z.ZodType<Numericid, z.ZodTypeDef, number>;
|
|
8
|
+
/**
|
|
9
|
+
* The name of the item.
|
|
10
|
+
* @see https://schema.org/name
|
|
11
|
+
*/
|
|
12
|
+
name: z.ZodString;
|
|
13
|
+
/**
|
|
14
|
+
* The description of the item.
|
|
15
|
+
* @see https://schema.org/name
|
|
16
|
+
*/
|
|
17
|
+
description: z.ZodOptional<z.ZodString>;
|
|
18
|
+
}, "strip", z.ZodTypeAny, {
|
|
19
|
+
id: Numericid;
|
|
20
|
+
name: string;
|
|
21
|
+
description?: string | undefined;
|
|
22
|
+
}, {
|
|
23
|
+
id: number;
|
|
24
|
+
name: string;
|
|
25
|
+
description?: string | undefined;
|
|
26
|
+
}>;
|
|
27
|
+
//# sourceMappingURL=conditions.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"conditions.d.ts","sourceRoot":"","sources":["../../../../src/entity/use-examples/product-woo/conditions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,mBAAmB,CAAC;AACtC,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAE3C,eAAO,MAAM,UAAU;IACrB;;OAEG;;IAEH;;;OAGG;;IAEH;;;OAGG;;;;;;;;;;EAEH,CAAA"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.conditions = void 0;
|
|
4
|
+
const ultra_v8n_1 = require("@imolko/ultra-v8n");
|
|
5
|
+
const identity_1 = require("../../identity");
|
|
6
|
+
exports.conditions = ultra_v8n_1.z.object({
|
|
7
|
+
/**
|
|
8
|
+
* A unique identifier for the product.
|
|
9
|
+
*/
|
|
10
|
+
id: identity_1.Numericid.rules(),
|
|
11
|
+
/**
|
|
12
|
+
* The name of the item.
|
|
13
|
+
* @see https://schema.org/name
|
|
14
|
+
*/
|
|
15
|
+
name: ultra_v8n_1.z.string(),
|
|
16
|
+
/**
|
|
17
|
+
* The description of the item.
|
|
18
|
+
* @see https://schema.org/name
|
|
19
|
+
*/
|
|
20
|
+
description: ultra_v8n_1.z.optional(ultra_v8n_1.z.string()),
|
|
21
|
+
});
|
|
22
|
+
//# sourceMappingURL=conditions.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"conditions.js","sourceRoot":"","sources":["../../../../src/entity/use-examples/product-woo/conditions.ts"],"names":[],"mappings":";;;AAAA,iDAAsC;AACtC,6CAA2C;AAE9B,QAAA,UAAU,GAAG,aAAC,CAAC,MAAM,CAAC;IACjC;;OAEG;IACH,EAAE,EAAE,oBAAS,CAAC,KAAK,EAAE;IACrB;;;OAGG;IACH,IAAI,EAAE,aAAC,CAAC,MAAM,EAAE;IAChB;;;OAGG;IACH,WAAW,EAAE,aAAC,CAAC,QAAQ,CAAC,aAAC,CAAC,MAAM,EAAE,CAAC;CACpC,CAAC,CAAA"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { ZodSchema, ZodTypeDef } from "@imolko/ultra-v8n";
|
|
2
|
+
import { EntityBase } from "../../entity-base";
|
|
3
|
+
import { Numericid } from "../../identity";
|
|
4
|
+
import { Props } from "./props";
|
|
5
|
+
import { Payload } from "./payload";
|
|
6
|
+
import { Primitive } from "./primitive";
|
|
7
|
+
export declare class Definition extends EntityBase<Numericid, Props, Primitive, Payload> {
|
|
8
|
+
/**
|
|
9
|
+
* Miembros estáticos
|
|
10
|
+
*/
|
|
11
|
+
static readonly NAME = "product-test";
|
|
12
|
+
static PROPS_VERSION: number;
|
|
13
|
+
static readonly conditions: ZodSchema<Props, ZodTypeDef, Payload>;
|
|
14
|
+
/**
|
|
15
|
+
* Constructor
|
|
16
|
+
*/
|
|
17
|
+
constructor(props: Props);
|
|
18
|
+
getPrimitive(): Primitive;
|
|
19
|
+
getPayload(): {
|
|
20
|
+
id: number;
|
|
21
|
+
name: string;
|
|
22
|
+
description?: string | undefined;
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
//# sourceMappingURL=definition.d.ts.map
|