3.0.66 • Published 4 years ago

@ns8/switchboard-interfaces v3.0.66

Weekly downloads
1
License
MIT
Repository
github
Last release
4 years ago

@ns8/switchboard-interfaces

CircleCI

Contains all switchboard interfaces

TypeScript Interfaces

There are multiple interfaces exposed that support the SwitchBoard project object.

  • Primary Schemas
    • SwitchActionSchema
    • SwitchEventSchema
    • SwitchScoreSchema
    • ScriptEventSchema
    • UIObject
  • Context Schemas
    • ExecutionContext interfaces of a SwitchBoard action context object
    • EventContext interfaces of a SwitchBoard event context object
    • ScoringContext interfaces of a SwitchBoard scoring context object
  • Supporting Schemas
    • EndpointSchema
    • SwitchTypeSchema
    • ProjectTypeSchema
    • SettingsImplementationType

all of which can be imported be imported by:

import { SwitchBoard, ExecutionContext, EventContext, ScoringContext } from "@ns8/switchboard-interfaces"

Schemas

All NS8 Official schemas are published to https://schemas.ns8.com/ if any changes or additions need to be made they should be made at github @ns8inc/ns8-schemas

Schemas are used by during the handoff between Fastify, Kafka and Zeebe to validate context objects before they are handed off to the switches. The interfaces are used by switch designers to ensure that their methods have the correct signatures.

  • switchboard.json exposes a local copy of the switchboard schema file it can be found here
  • executionContext.json exposes a local copy of the executionContext schema file it can be found here
  • eventContext.json exposes a local copy of the eventContext schema file it can be found here
  • scoringContext.json exposes a local copy of the scoringContext schema file it can be found here

Schema Loading

const exeContextSchema = require("@ns8/switchboard-interfaces/executionContext.json");

Install

  • yarn

Create a linked working build

Running yarn build:dev will automatically build and link a local working copy of the interfaces. You can then use them in another project by running yarn link @ns8/switchboard-interfaces from the root of the other project.

3.0.66

4 years ago

3.0.65

4 years ago

3.0.64

4 years ago

3.0.63

4 years ago

3.0.59

4 years ago

3.0.60

4 years ago

3.0.61

4 years ago

3.0.62

4 years ago

3.0.58

4 years ago

3.0.57

4 years ago

3.0.56

4 years ago

3.0.55

4 years ago

3.0.54

4 years ago

3.0.53

4 years ago

3.0.52

4 years ago

3.0.51

4 years ago

3.0.49

4 years ago

3.0.50

4 years ago

3.0.48

4 years ago

3.0.46

4 years ago

3.0.47

4 years ago

3.0.45

4 years ago

3.0.44

4 years ago

3.0.43

4 years ago

3.0.41

4 years ago

3.0.42

4 years ago

3.0.40

4 years ago

3.0.34

4 years ago

3.0.35

4 years ago

3.0.33

4 years ago

3.0.38

4 years ago

3.0.39

4 years ago

3.0.36

4 years ago

3.0.37

4 years ago

3.0.32

4 years ago

3.0.31

4 years ago

3.0.30

4 years ago

3.0.28

4 years ago

3.0.29

4 years ago

3.0.27

4 years ago

3.0.25

4 years ago

3.0.26

4 years ago

3.0.24

4 years ago

3.0.23

4 years ago

3.0.22

4 years ago

3.0.21

4 years ago

3.0.16

4 years ago

3.0.17

4 years ago

3.0.15

4 years ago

3.0.20

4 years ago

3.0.18

4 years ago

3.0.19

4 years ago

3.0.12

4 years ago

3.0.13

4 years ago

3.0.11

4 years ago

3.0.14

4 years ago

3.0.10

4 years ago

3.0.9

4 years ago

3.0.8

4 years ago

3.0.7

4 years ago

3.0.6

4 years ago

3.0.3

4 years ago

3.0.2

4 years ago

3.0.1

4 years ago

3.0.0

4 years ago

3.0.0-beta

4 years ago