2.6.102 • Published 3 years ago

@dmitrymin/eventmapper-common v2.6.102

Weekly downloads
224
License
-
Repository
github
Last release
3 years ago

EventMapper Common

Common types and utilities shared across EventMapper applications.

Publish

npm run relase # trigger automatic version change and push to github
npm publish

Installation

npm install eventmapper-common

Data schema, types, validation

GraphQL

GraphQL -> Resolvers -> |Domain Boundary| -> Services -> Loaders -> Data Sources (Postgres/Redis/Elasticsearch)

https://2ality.com/2020/06/validating-data-typescript.html#approaches-for-data-validation-in-typescript

OpenAPI - https://www.npmjs.com/package/@openapi-contrib/json-schema-to-openapi-schema

Schema

To provide a common entity interface shareable across applications, entities are defined using JSON Schema DSL. JSON schema is then used to define the validator.

Types / Interfaces

TypeScript types are derived from the JSON Schema DSL with the help of TypeBox

The typing can be augmented using the TypeBox modifiers. This produces:

External vs. internal representation of data...

Validation

Validation is handled by AJV

https://www.npmjs.com/package/ajv/v/6.12.6 https://ajv.js.org/packages/ajv-formats.html https://github.com/ajv-validator/ajv-errors https://caoslab.psy.cmu.edu:32443/developers/jsexperimentslayout/-/tree/homepage_full/client/node_modules/babel-loader/node_modules/ajv https://opensourcelibs.com/lib/typebox

Parsing / serialization -

https://ajv.js.org/guide/getting-started.html#parsing-and-serializing-json

https://levelup.gitconnected.com/typescript-validation-with-ajv-1b70a76dd678 https://code.tutsplus.com/tutorials/validating-data-with-json-schema-part-1--cms-25343 https://spin.atomicobject.com/2018/03/26/typescript-data-validation/

Resources

Project setup

Versioning

TSLint

Alternatives

2.6.102

3 years ago

2.6.100

3 years ago

2.6.94

3 years ago

2.6.96

3 years ago

2.6.98

3 years ago

2.6.61

3 years ago

2.6.67

3 years ago

2.6.69

3 years ago

2.6.63

3 years ago

2.6.71

3 years ago

2.6.74

3 years ago

2.6.76

3 years ago

2.6.80

3 years ago

2.6.88

3 years ago

2.6.84

3 years ago

2.6.24

3 years ago

2.6.13

3 years ago

2.6.14

3 years ago

2.6.11

3 years ago

2.6.12

3 years ago

2.6.10

3 years ago

2.6.5

3 years ago

2.6.4

3 years ago

2.6.6

3 years ago

2.6.9

3 years ago

2.6.8

3 years ago

2.5.0

3 years ago

2.5.1

3 years ago

2.5.4

3 years ago

2.5.3

3 years ago

2.2.5

3 years ago

2.2.0

3 years ago

2.2.2

3 years ago

2.1.0

3 years ago

2.0.8

3 years ago

2.0.3

3 years ago

2.0.2

3 years ago

2.0.5

3 years ago

2.0.4

3 years ago

2.0.7

3 years ago

2.0.6

3 years ago

2.0.1

3 years ago

1.1.4

3 years ago

1.1.3

3 years ago

1.0.101

3 years ago

1.1.0

3 years ago

1.0.73

3 years ago

1.0.72

3 years ago

1.0.62

3 years ago

1.0.65

3 years ago

1.0.63

3 years ago

1.0.59

4 years ago

1.0.58

4 years ago

1.0.57

4 years ago

1.0.55

4 years ago

1.0.56

4 years ago

1.0.54

4 years ago

1.0.53

4 years ago

1.0.51

4 years ago

1.0.49

4 years ago

1.0.50

4 years ago

1.0.48

4 years ago

1.0.47

4 years ago

1.0.46

4 years ago

1.0.44

4 years ago

1.0.45

4 years ago

1.0.43

4 years ago

1.0.42

4 years ago

1.0.41

4 years ago

1.0.40

4 years ago

1.0.39

4 years ago

1.0.38

4 years ago

1.0.37

4 years ago

1.0.36

4 years ago

1.0.35

4 years ago

1.0.34

4 years ago

1.0.32

4 years ago

1.0.31

4 years ago

1.0.30

4 years ago

1.0.29

4 years ago

1.0.28

4 years ago

1.0.27

4 years ago

1.0.26

4 years ago

1.0.25

4 years ago

1.0.22

4 years ago

1.0.24

4 years ago

1.0.23

4 years ago

1.0.20

4 years ago

1.0.19

4 years ago

1.0.17

4 years ago

1.0.14

4 years ago

1.0.13

4 years ago

1.0.12

4 years ago

1.0.11

4 years ago

1.0.9

4 years ago

1.0.8

4 years ago

1.0.6

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago