2.0.0-alpha.26 • Published 3 years ago

seenspire-api-client v2.0.0-alpha.26

Weekly downloads
4
License
Unlicense
Repository
-
Last release
3 years ago

Title

Seenspire - interface & api client library

Motivation

To have a well typed application, typings definitions and consistency, we use the backend as one source of truth, this library acts as a bridge for frontend applications to relay on that source of truth.

Summary

Generates api client from remote swagger.json file, based on modified typescript-fetch mustache template.

How to install

quick start

brew install swagger-codegen@2
nvm use v10.21.0
yarn run build:swagger:staging #staging is where the changes usually are first.
#Update `TRIALEXPIRED` values (not props) to `TRIALEXPIRED` in api.ts
yarn run build:library

swagger-codegen from GitHub - swagger-api/swagger-codegen: swagger-codegen contains a template-driven engine to generate documentation, API clients and server stubs in different languages by parsing your OpenAPI / Swagger definition.

Remove any .lock files.

Install yarn globally https://classic.yarnpkg.com/en/docs/install

Commit your work with a message Changes

Run npm version prerelease or just up the version manually and commit with a message of the version online example 2.0.0-alpha.10

Make sure you are logged in into npm registry npm login (ask the admin for credentials)

Run npm public

To see these changes appear in the seenspire-webapp, match the version to the new version number in package.json and yarn install. Warning: Chances are theres a lot of type changes that occur when this library is updated. You will have to fix them all before the webapp loads properly.

Notes:

  • Needs to be swagger version 2, other the build doesn’t work
  • Needs to run against v10.21.0 (only tested against this version), higher versions don’t seem to work

Usage

  • build:swagger : builds the typescript files from the remote swagger.json file
  • build : builds the javascript files (with .d.ts) into ./dist
2.0.0-alpha.26

3 years ago

2.0.0-alpha.25

4 years ago

2.0.0-alpha.24

4 years ago

2.0.0-alpha.23

4 years ago

2.0.0-alpha.22

4 years ago

2.0.0-alpha.21

4 years ago

2.0.0-alpha.20

4 years ago

2.0.0-alpha.19

5 years ago

2.0.0-alpha.18

5 years ago

2.0.0-alpha.16

5 years ago

2.0.0-alpha.15

5 years ago

2.0.0-alpha.14

5 years ago

2.0.0-alpha.13

5 years ago

2.0.0-alpha.11

5 years ago

2.0.0-alpha.12

5 years ago

2.0.0-alpha.8

5 years ago

2.0.0-alpha.10

5 years ago

2.0.0-alpha.7

5 years ago

2.0.0-alpha.6

5 years ago

2.0.0-alpha.5

5 years ago

2.0.0-alpha.4

5 years ago

2.0.0-alpha.3

5 years ago

2.0.0-alpha.2

5 years ago

2.0.0-alpha.1

5 years ago

2.0.0-alpha.0

5 years ago

0.0.50

5 years ago

0.0.49

5 years ago

0.0.48

5 years ago

0.0.47

5 years ago

0.0.46

5 years ago

0.0.45

5 years ago

0.0.44

5 years ago

0.0.42

5 years ago

0.0.41

5 years ago

0.0.40

5 years ago

0.0.39

5 years ago

0.0.38

5 years ago

0.0.37

5 years ago

0.0.36

5 years ago

0.0.34

5 years ago

0.0.33

5 years ago

0.0.32

5 years ago

0.0.31

5 years ago

0.0.30

5 years ago

0.0.29

5 years ago

0.0.28

5 years ago

0.0.27

5 years ago

0.0.26

5 years ago

0.0.25

6 years ago

0.0.23

6 years ago

0.0.22

6 years ago

0.0.19

6 years ago

0.0.18

6 years ago

0.0.17

6 years ago

0.0.16

6 years ago

0.0.15

6 years ago

0.0.14

6 years ago

0.0.13

6 years ago

0.0.12

6 years ago

0.0.11

6 years ago

0.0.10

6 years ago

0.0.9

6 years ago

0.0.8

6 years ago

0.0.6

6 years ago

0.0.5

6 years ago

0.0.4

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago